Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007


all groups > dotnet xml > august 2003

Filter by week: 1 2 3 4 5

Appending XML
Posted by ArmsTom at 8/31/2003 5:52:41 PM
I know this question has been asked several times over. For some reason I cannot get it to sink in. I would like to create a xml document fragment (<--I think that's what I want, tell me if I'm wrong) that "looks" like this: <Level1 att=? att2=? att3=?> <Level2a> <Level3a...more >>

schemas and empty elements
Posted by chris NO[at]SPAM yahoo.com at 8/29/2003 11:37:23 AM
Hi, Another silly question - by default if I define a specific element as a string (xsd:string) in a schema, if I validate a document against that schema and the element is empty, should it, or should it not pass through successfully?? Basically, I know there is an <empty> tag to put in the...more >>

get rid of empty nodes
Posted by chris NO[at]SPAM yahoo.com at 8/29/2003 11:21:45 AM
Okay, this is probably a really stupid question - but I just can't figure it out. I have a large xml document which is being transformed into another using ..net xsl - some elements inside of which do not have any data at some times but do at others. If they don't have any data, I want to sup...more >>

Parse OK with DomDocument fails with XMLDocument
Posted by bonei NO[at]SPAM vafb.com at 8/28/2003 6:56:38 AM
I have an XML doc that parses OK with DomDocument from MSXML2, but it fails with XMLDocument in DotNet. The error says something about mismatching opening and closing tags. Any tips? Thanks, Brian...more >>

Not persisting an element
Posted by jlea at 8/27/2003 5:53:09 PM
Is there an option in the schema definition to indicate that when xsd.exe generates classes for the schema that a certain element will not get serialized to and from XML? In other words, I would like to have a variable end up in a C# generated class that I can access from applications but not ha...more >>

Binding PREVIOUS and CURRENT data to VB form via single XML file
Posted by Andy Wells at 8/27/2003 2:49:08 PM
I'm using VB.NET and I have an application that binds a schema to the main form's controls, and the user has the ability to load an XML file through the schema and into the bound form. [CODE POSTED AT END OF MESSAGE] My problem is this: the schema contains an element called "TRENDED" and it h...more >>

XslTransform throws exception when output is an XML fragment
Posted by John Meyer at 8/26/2003 1:54:18 PM
I have an application where I create an xml fragment using an XslTransform object. However, if I use the following output method, <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes" standalone="no" /> some of my transforms fail with the followin...more >>

XML Comment documentation
Posted by WALDO at 8/25/2003 11:49:54 PM
Where can I find some documentation on creating XML comment files. I would like to know the format/conventions for creating them. ...more >>



XmlDataDocument/Dataset
Posted by Peter Feakins at 8/25/2003 4:50:00 PM
We're building some web services that are primarily being consumed by a .net application. We're returning datasets for that purpose. We're also have to provide access to these services to classic asp pages. To do this we're returning a XmlDataDocument ie Public Function GetDataAsXml(...) ...more >>

xlinks and SVG
Posted by James Westgate at 8/25/2003 4:39:45 PM
Hi All, We are creating xml SVG documents on the fly in VB.NET, an XMLDocument obejct and need to create a <use/> element e.g. <use xlink:href="#id" x="100" y="100"/> To create this element, we use the CreateElement method and then the SetAttribute method on the new element. eg objnew....more >>

Creating one xml doc from mutliple strings selected from database
Posted by Kathy Burke at 8/25/2003 12:48:59 PM
Hi, tried this a few weeks ago, but still need some help. I have a simple database table, fields: Customer, WorkOrder, xmlDoc. The xmlDoc fields contains a small blob of xml data, such as: <WorkOrder> <ProductID/> <OrderDate/> <ProductGroup> <SerialNo/> <SerialNo...more >>

Xml-Grid for editing NodeList
Posted by Heinz Willi Wiedow at 8/25/2003 11:02:35 AM
Hey XML-Guys, I'm playing now for a couple of days with C# and XML. In earlier threads a mentioned that I develop smaller Web-Applications. Therefore I want to edit and add new nodes to my Xml-Documents. To use a DataSet is not very handy because if the data is to complex it all...more >>

Serialize arraylist with class
Posted by Jonah Olsson at 8/25/2003 12:18:28 AM
Hello guys, Is there any way to serialize the following? Or do I need to create a new class called Languages that inherits Language? <Serializable()> _ Public Class Language Public LanguageName As String Public LanguageCode As String Pub...more >>

XSD.exe handling of mixed content types in generate classes?
Posted by Bill Cohagan at 8/24/2003 1:20:26 PM
I'm trying to generate class definitions from an XSD that contains something like: <xs:complexType name="foo" mixed="true"> <xs:choice minOccurs = "0" maxOccurs="unbounded"> <xs:element name = "bar" type = "something"/> ... <xs:element name = "baz" type = "someth...more >>

Xmlt and xml closing tags
Posted by Heinz Willi Wiedow at 8/24/2003 10:13:07 AM
Hey XML-Fans, I transform some XML-Files with XmlT to html. I want to have a DOCTYPE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Now I have some problems with the closing tags. For example wenn I say to my...more >>

XML reader error
Posted by kuya789 NO[at]SPAM yahoo.com at 8/24/2003 1:55:11 AM
The example you give me worked until I tried to open an xml file with nested tags. for example the xml looks like this <book> <genre> <action>ABC</action> <bio>DFK</bio> </genre> </book> I would like the result to be this when i select to read the <genre> tag <action>ABC</ac...more >>

NameSpace SelectNodes Problem
Posted by Alexander Gnauck at 8/23/2003 7:29:00 PM
Hello, i have problems with the Namespaces and the .Net XML Parser My XML looks like this: <query xmlns="jabber:iq:roster"> <item jid="srlee@localhost" name="srlee" subscription="both"><group>contacts</group></item> <item jid="tlee@localhost" name="Troy" subscription="both"><group...more >>

Visual Studio Error Message
Posted by Jodie Schau at 8/23/2003 12:21:27 AM
After installing Visual Basic.NET and trying to open the applicaion, I get the following error message: Visual Basic.NET is unable to start because the file devenvngi.xml is missing or corrupted. To correct this problem, copy devenvngi.xml from your setup location to the following folder...more >>

Typed DataSet & SQL XML/Urgently help needed.
Posted by linesh_gajera NO[at]SPAM hotmail.com at 8/22/2003 9:19:08 PM
Hi Guys i having the same problem with Strongly typed dataset, I have created a stronsetly typed dataset by draging table from Server explorer and now i have retreived xml from SQL server 2000 and tried to populate dataset but it populates 0 rows even though ml contains rows. If i use regular...more >>

How to allow arbitrary content but make one requirement
Posted by mike_kayser NO[at]SPAM hotmail.com at 8/22/2003 11:25:39 AM
Hi, I have a schema which is fine except for one part giving me trouble: (...) <xs:element name="DOC"> <xs:complexType mixed="true"> <xs:sequence> <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded" /> <xs:element ref="IEOutput" minOccurs="1" maxOccurs="...more >>

Generating reports with C#
Posted by rimaz NO[at]SPAM ifko.ktu.lt at 8/22/2003 4:21:20 AM
Hi, we are developing server side report generation application with .NET. The problem is, that we have to present same data in diferent formats (HTML, PDF, WORD, EXCEL). This has to be done using templates, wich are defined by user (with GUI frontend). The main problem is how to generate Wor...more >>

NEWBIE: XML in VB.NET
Posted by kuya789 NO[at]SPAM yahoo.com at 8/21/2003 10:58:41 PM
I need to make a script that reads the info inside a specific tag. for example the xml file looks like this <book genre="novel" publicationdate="1967" ISBN="0-201-63361-2"> <title>The Confidence Man</title> <author> <first-name>Herman</first-name> <last-name>Melville<...more >>

Reading and Iterating through an XSD Schema?
Posted by Cy Huckaba at 8/21/2003 6:01:11 PM
I have been looking around for a sample on how to read an XSD schema and iterate through the elements to display them. I am working in VB.Net and I have looked at all of the docs on msdn and can find plenty of samples on how to read it in and then write it write back out...with no manipulation...more >>

How to get elements from XML using DOM in Javascript
Posted by Jim Mitchell at 8/21/2003 2:42:23 PM
I am getting an error... elem is null or not an object using the following Client side javascript. Can someone give me some help? Thanks in advance. <XML ID="PB"> <ProductItem> <Product ID="Adhesive"> <ItemType>Machine</ItemType> </Product> </Pro...more >>

Writing to file mangles special characters
Posted by rbowley NO[at]SPAM lycos-europe.com at 8/21/2003 9:58:38 AM
A guy called Yuri brought this up a while ago but no one got back to him and now I have the same problem. I have an xml file which contains special characters such as &eacute; etc. The DTD declares these enitities and assigns them the correct unicodes (such as &#233;) Now, when I've loaded ...more >>

edit xml
Posted by Heinz Willi Wiedow at 8/21/2003 9:11:27 AM
I'm developing smaller Websites with Asp.net and C#. For some Contents I want to develop a management system. At the moment a think about managing the contents via xml-files. For example the news section maybe has not more than 4 entries per page. And the complete application has abo...more >>

How to write XML to the rendered HTML page.
Posted by Jim Mitchell at 8/20/2003 6:22:08 PM
In code behind, I generate a string that I would like to have rendered to my page so that my javascript can load it into a client side javascript xml document. If I use repsonse.write(txml), it puts it outside of the body of the document. I also tried assigning it to a label.text, but the jav...more >>

Dataset to XMLDocument and Vice versa
Posted by Matt M at 8/20/2003 6:08:10 PM
Hey, I'm trying to pass an XML document from a webservice to another assembly. What I'd like to do is pass either an XML document or a dataset, so I figure that if I can turn the Dataset into an XMLDocument, then in my assembly, return that XMLDocument back to the dataset (if it is one), I w...more >>

xml schema in wsdl
Posted by Suresh at 8/20/2003 4:48:42 PM
Hello All, I have a schema ( XSD) as follows. - <xs:complexType name="Tzp3wsXSPOP3MessageArray"> - <xs:complexContent> - <xs:restriction base="soapenc:Array"> <xs:sequence /> <xs:attribute ref="soapenc:arrayType" n1:arrayType="ns1:Tzp3wsXSPOP3Message[]" xmlns:n1="http://schemas.xmls...more >>

NEWBIE - Do I get it now.
Posted by Jim Mitchell at 8/20/2003 11:34:18 AM
Looking for the general strategy for using ASPX, XML, Javascript, Code-behind 1) Use Code-Behind and response.write to build a few XML data islands. 2) When appropriate, use code behind. 3) Add HTML Controls when I do not want the scren to postback. 4) Keep an html form hidden on the page and...more >>

USING XML TO FILL LINKED DROPDOWN LIST
Posted by Jim Mitchell at 8/20/2003 7:56:36 AM
My Goal is to have a dropdown (DL2) filled from the selectIndexChange event of a primary dropdown (DL1). These are picklists that will be selected frequently. Can someone recommend a strategy that will not require the screen to refresh every time. 1) If I use HTML dropdown lists, how do I ...more >>

.NET and schemas
Posted by Antonio Collins at 8/20/2003 6:57:20 AM
Does anyone know of a site that details the variances between .NET's schema implementation and other tools? I have a dataset and schema that validates perfectly via MSXML4 but fails validation in .NET. I am positive the dataset is correct since if I misname attributes/elements, or rearra...more >>

XPath woes [vb.net]
Posted by ArmsTom at 8/19/2003 7:37:22 PM
I've been playing around with xml for a couple days, so I have no idea what I'm doing yet :). Be gentle. Ok, here's what I have... ================================ Do while xmlIter_Records.MoveNext Dim i As Integer = xmlIter_Records.Current.GetAttribute("id", "") Dim xmlIter_MovieI...more >>

SoapExtension Sample
Posted by Joe at 8/19/2003 2:16:46 PM
Hi, I am attempting to build a web service that uses a custom soap extension. In an effort to learn about soap extensions, I developed a simple test web service. I read the article "Altering the SOAP Message Using SOAP Extensions" and incorporated the sample code given into my web ser...more >>

serialization of XML objects....
Posted by Jim at 8/19/2003 10:25:22 AM
Can I serialize an System.Xml.XmlNode object or is better to use the 'InnerText' method to extract the node defintion? Cheers in Advance Jim ...more >>

Problems with Xpath when adding namespace
Posted by David Williams at 8/18/2003 11:59:29 AM
I have a simple XML file that I have been using: <component name="test"> <class name="class"/> <component> Up till now, the Xpath of "//component[@name="test"]/class[@name="class"]" worked well to select the <class> tag. Recently we added a namespace to the <component> tag: <compo...more >>

Dynamic XSL transformation
Posted by Philippe.graca NO[at]SPAM voila.fr at 8/18/2003 10:35:52 AM
Hi, I'm facing a annoying problem. In the old ASP times, I was able to construct dynamically an XSL file and then apply it to my XML file to create the HTML output. Today, with the .NET framework, I can't find how to do this. Of course, if my XSL file is already existing in my disk, it's easy ...more >>

How to specify proxy/authority for XmlDocument.Load()
Posted by Manfred Braun at 8/17/2003 6:45:17 PM
Hi All, I am trying to access xml-files in the internet from my intranet-page. Making XmlDocument.Load() calls internally works fine, but not so to the internet. I think the calls are failing, because we use a proxy-server. Can I specify a specifix proxy in the call and/or in the configurat...more >>

property serialisation
Posted by erez shalom at 8/17/2003 5:39:35 PM
Hi , i have : public classA { private int id; public int id{get...,set....) } i want to serialize the field id,but i don't want to make him public(it works like that way). in the msdn it noted that public properties can be serialize too,but when i put the[xmlattribute] with the pr...more >>

Using Docbook with Xml-Control
Posted by Otmar Ganahl at 8/15/2003 11:10:56 PM
Hi! In my application I transform a docbook file to a html view using the webcontrol "Xml" (with a xsl).It works fine, except the using of the tag "fileref" in the docbook-file will cause an exception: _ctl1_DesktopThreePanes1_ThreePanes__ctl3_xml1: Failed! Object reference not set to an ...more >>

loading XML into collection slow
Posted by Kurt Bauer at 8/15/2003 1:34:40 PM
I have an ASP group calendar application which pulls calendar data from Exchange via webdav into an XML string. I then loop the XML nodes to populate a collection of appointments. Finally I use the appointment collection to populate the calendar control. The performance getting the XML data i...more >>

Serialisation > construct objects
Posted by lobrys at 8/14/2003 11:25:17 AM
Hi everybody what are the objets for the folowing XML serialisation : (I have problem with "name" and "datatype") <vehicule type="car"> <name datatype="String">Megane</name> </inventory> I Have this : class vehicule <xmlattributeattribute()> public type as string ...more >>

XML samples for replace a child element
Posted by Chi Tang at 8/14/2003 9:53:16 AM
Hi, Does anybody know where I can find samples to search an element in a subtree of an xml file and replace some new value for this element? I can only find some samples to use 'replace last child or replade first child' but couldn't find sample for replace a child neither first nor last chil...more >>

XSD Complex Type
Posted by Kanchana D S at 8/14/2003 9:02:46 AM
Hi, I have a complex type which has to have its content in the xml instance document as shown below : <CONFIG_INFO> <country resourceNumber="20004" fieldSecurity="5, 5">Great Britain</label> </CONFIG_INFO> For this, I have defined the schema as below : <xs:complexType name="Attri...more >>

xsi:noNameSpaceSchemaLocation
Posted by Balaji V at 8/14/2003 2:30:04 AM
Hi, I am creating C# calsses to seralize and deserialize based on xsd. When defining the classes to do seralization i need to specify the schema for the reference. Typically my class definition looks like this : [XmlRootAttribute(NameSpace = "", IsNullable=false)] public class MyClass {...more >>

Same query against multiple docs
Posted by mono at 8/13/2003 5:08:04 PM
Hello, I have a collection of XML strings and want to find those that match a given XPath expression. I see lots of stuff to support evaluating the same expression against different nodes in a single document but as far as I can see, if I want to evaluate the expression against different d...more >>

Serialisation > ignore element when an attritube is null
Posted by lobrys at 8/13/2003 3:26:48 PM
Hi everybody here is a question I have this class that a want to serialize : Public Class BOO <XmlAttributeAttribute()> Public THING As String <XmlElementAttribute("param")> Public p() As param End Class it is (of course) working with this class : Public Class P...more >>

Schema Editor Problems in VS.NET
Posted by Andrew Ducker at 8/13/2003 8:51:17 AM
I have an XML document and a schema. It validates fine, but when I try to switch to data view there's a problem. So I tried "Create Schema" and got the error: An error occurred while loading the schema with targetNameSpace "http://tempuri.org/XMLFile1.xsd" referenced in this document. Ind...more >>

Reading XML direct from SQL
Posted by Jason Hirst at 8/12/2003 6:13:38 PM
Hi, I'm not sure if this is possible, I can't see why, but is there a way round a problem I have. I'm returning the results from a stored procedure, of which there could be anything from 5 to 1000 records. The results have simply 3 columns (parent, level, name), although this could increas...more >>

Add new element in the text of another element
Posted by Dave at 8/12/2003 4:56:25 PM
Hi, I have an xml file which looks sort of like this: <Drugs> <Drug> <Name>Losartan Potassium</Name> <Indications>Antihypertensive</Indications> <SideEffects>BP Change, GI Distress, etc</SideEffects> <Warninigs>Dizziness, insomnia, cough, URI, anemia</W...more >>


DevelopmentNow Blog