XML Tables?

A

Able

Dear friends

The XML format for reading from .Net is as this:
<?xml version="1.0" standalone="yes"?>
<dataroots>
<Table1>
<ID />
<Name />
</Table1>
</dataroots>

Is it possible to impment one more table, ex. Table2 in the same XML file
and if so how is the format?

Regards Able
 
A

Armin Zingler

Able said:
The XML format for reading from .Net is as this:
<?xml version="1.0" standalone="yes"?>
<dataroots>
<Table1>
<ID />
<Name />
</Table1>
</dataroots>

Is it possible to impment one more table, ex. Table2 in the same XML
file and if so how is the format?

I think the question is not VB.Net specific, it is more a general problem
about XML, so the more appropriate group for this question is
microsoft.public.dotnet.framework.


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
C

Cor Ligthert

Hi Able,

This is not a real XML table, it is more a dataset in XML format

When you want to try things with XML set them in your VB.net IDE and open it
in the solution explorer.

Left below is a tab for XML or data view..

I hope this helps?

Cor
 
H

Herfried K. Wagner [MVP]

* "Able said:
The XML format for reading from .Net is as this:
<?xml version="1.0" standalone="yes"?>
<dataroots>
<Table1>
<ID />
<Name />
</Table1>
</dataroots>

Is it possible to impment one more table, ex. Table2 in the same XML file
and if so how is the format?

Did you define this format yourself or are you talking about
auto-generated files that are created by VS.NET?
 
J

Jay B. Harlow [MVP - Outlook]

Able,
Have you tried something like:
<?xml version="1.0" standalone="yes"?>
<dataroots>
<Table1>
<ID />
<Name />
</Table1>
<Table2>
<ID />
<Name />
</Table2>
</dataroots>
Or

<?xml version="1.0" standalone="yes"?>
<dataroots>
<Table1>
<ID />
<Name />
<Table2>
<ID />
<Name />
</Table2>
</Table1>
</dataroots>

The first is a more relational format, that the System.Data.DataSet uses by
default, while the second is more hierarchical more commonly found in XML
Schemas. The second can be used with a DataSet with effort.

For XML specific help you might try microsoft.public.dotnet.xml.

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top