By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,467 Members | 1,605 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,467 IT Pros & Developers. It's quick & easy.

Question using XMLSchema in C#.net

P: n/a
Hello!

I have a couple of questions about using XMLSchemas in C#.net.

- I want to store data from 5 database-tables in XML Files. Do i need
one schema for every table?

- I want to store every table in an explicit XML-File! Can i also do
this using just one schema AND...

- I want to read the XML-Data to a DataSet! How can i do this if my
data is in different XML-Files (refers to the question above!)

Hope anyone can help me out!

May 15 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
RancidPunx,

An XML Schema is an xml document that describes the elements and datatypes
of the XML Document that will hold your table data. So, if the tables are
different, and you want to use a schema, you'll need to have a schema for
each table.

To read XML Data into a DataSet, you can use the DataSet's ReadXml method.
It has a number of overloads some of which allow you to supply a schema.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"ra********@gmx.at" wrote:
Hello!

I have a couple of questions about using XMLSchemas in C#.net.

- I want to store data from 5 database-tables in XML Files. Do i need
one schema for every table?

- I want to store every table in an explicit XML-File! Can i also do
this using just one schema AND...

- I want to read the XML-Data to a DataSet! How can i do this if my
data is in different XML-Files (refers to the question above!)

Hope anyone can help me out!

May 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.