| | |
How do i open a XML file?
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2007
Posts: 48
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Oct 2007
Posts: 172
Reputation:
Solved Threads: 16
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
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
![]() |
Similar Threads
- Read XML File in C/C++ (C++)
- Why does shortcut open wrong app? (Windows Software)
- Multiple Table Reading From An Xml File (VB.NET)
- Can't open any xml file (PHP)
- How to re-organized XML file and call XML file from my software (RSS, Web Services and SOAP)
- XML problem (ASP.NET)
- Itunes will not open or play music! (OS X)
Other Threads in the C# Forum
- Previous Thread: question about kind of class
- Next Thread: C# and VBA!
| Thread Tools | Search this Thread |
.net 2007 access algorithm appportability array barchart bitmap box broadcast c# camera check checkbox client combobox control conversion cs4 csharp custom database datagrid datagridview dataset date datetime degrees development draganddrop drawing encryption enum event eventcloseformc# excel file form format forms function gdi+ handler httpwebrequest image index input install java keypress label list listbox listener listview load mandelbrot math mouseclick mysql operator path photoshop picturebox pixelinversion post programming radians regex remote remoting resolved. richtextbox search security server sleep socket sql statistics stream string table text textbox thread time timer update usercontrol validation view visual visualstudio webbrowser windows winforms wordautomation wpf xml






