Connecting Tech Pros Worldwide Forums | Help | Site Map

Loading an XML into DataSet

Newbie
 
Join Date: Mar 2009
Location: Lahore, Pk
Posts: 27
#1: Apr 6 '09
Hello, I have to load an xml document into a DataSet. Anybody has some code snippet?

Suppose the xml doc is standalone and has a root and some variable number of child nodes. Child nodes have attributes like 'id', 'type' etc ...
I want to to use dataset to get the info of nodes, like type of node having id = ...



PRR PRR is offline
Moderator
 
Join Date: Dec 2007
Location: India
Posts: 700
#2: Apr 10 '09

re: Loading an XML into DataSet


Look into DataSet ReadXml .. Remember though your xml doc should be compatible with table/rows...
Newbie
 
Join Date: Mar 2009
Location: Lahore, Pk
Posts: 27
#3: Apr 10 '09

re: Loading an XML into DataSet


Thanks.

Quote:

Originally Posted by DeepBlue View Post

Remember though your xml doc should be compatible with table/rows...

You mean schema?
Reply

Tags
c# dataset, xml