473,405 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

creating a dataset from XmlNode

Hi
Is there a simple way to create a dataset from a XmlNode ? or from a string
containing the XML?

Regards
Nov 15 '05 #1
2 5886
Tim,

You should be able to take the XML and pass it to the ReadXml method on
the DataSet class.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"tim djossou" <ti*@djossou.co.uk> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi
Is there a simple way to create a dataset from a XmlNode ? or from a string containing the XML?

Regards

Nov 15 '05 #2
The ReadXml method does not seem to accept a Xml string - The overload which
accept a string expects a filename.
Regards

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:uC**************@TK2MSFTNGP09.phx.gbl...
Tim,

You should be able to take the XML and pass it to the ReadXml method on the DataSet class.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"tim djossou" <ti*@djossou.co.uk> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi
Is there a simple way to create a dataset from a XmlNode ? or from a

string
containing the XML?

Regards


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David Elliott | last post by:
I am creating a configuration class to read / write a standard configuration file. <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="ConnectionString"...
3
by: Mae | last post by:
Dear All, I have a problem here, I'm using C# Webform calling a webservices. The webservices return me a XMLnode, using this XMLnode I want to convert it to dataset so I can bind to the...
12
by: Whoever | last post by:
Hi, I'm trying to return an XmlDocument or XmlNode converted from a typed dataset. public XmlNode whatever() { MyTypedDataSet ds = new MyTypedDataSet(); return new XmlDataDocument(ds); }
3
by: lgbjr | last post by:
Hi All, I need some help getting data from an XML file into a dataset. The XML file has more data in it than I actually need. So, what I think I need to do is to create a dataset with the tables...
4
by: Bryan Dickerson | last post by:
Ok, I've spent all this time creating a program to read an XML Document via XPaths and my boss is pretty thrilled, but now I have to return an XML document, so can someone point me to some sample...
0
by: Leeor Chernov | last post by:
Hi , I am using the method: DSSap.ReadXml( XmlPath,XmlReadMode.InferSchema ); And as I expected I get an error when the xml does not matching my DataSet that contains already a schema , The...
2
by: GTi | last post by:
I have a result from webservice query: XmlDocument doc = new XmlDocument(); XmlNode newSet = doc.ImportNode( ); doc.DocumentElement.AppendChild(newSet); I have the same database on my...
1
by: Alexander Vasilevsky | last post by:
Is that valid XmlNode for dataset xml. How to fill in those xml 'of a dataset? There DataSet.ReadXml (XmlReader), but you can initialize XmlReader only URI xml- file, and I have a xml data...
0
by: DotNetFAQ | last post by:
I need to insert rows to a database table after processing a piece of an XML file. The XML file would look something like: <Book> <Chapter> <Page> <Paragraph> <Paragraph> </Page> </Chapter>...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.