Hi

please can someone help? I have been pulling my hair out for days trying to understand how to open a XML data store in an application. I don't understand the basic principles, as i have opened it int a dataset using readXml, but then been unable to access any of the data. I have then tried creating an XmlDataDocument, with a schema, but was unable to open as there was a conflict with the root element. Please can someone help. I have read alot of the MSDN stuff but was not really able to fully understand it.

Thanks

Recommended Answers

All 2 Replies

Why not be more helpful and give an example of your XML as well as your failing code.

Ok,

using System.Xml;

xmlDocument oDoc = new xmlDocument();

oDoc.load(/*put the xml path here*/);

then you can handel the targeted xml file within your application

or you can use an XmlTextReader object it performs the same task

Here is a link to a good tutorial for this

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.