Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am new to XML and had some trouble making a database based on xml.

 

(xml file for simple records)

 

I created an xsd containing a simple element.The problem that occurred was that I only could fill the structure once. It can only contain one root element.

 

I can not add multiple instances.

 

solution i found was to create a dataset. Now a xsd and vb file is generated.

 

What xml-tags allow multiple instances ( so i can make a table, in stead of single element)

  • *Experts*
Posted

XML can only have one root node. You normally stick your tables and/or rows under that. If you create a DataSet, you can see it's XML representation by using:

myDataSet.GetXml()

 

or write it to a file with

 

myDataSet.WriteXml()

 

-Nerseus

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...