| | |
How do i open a XML file?
Please support our C# advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
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 access algorithm alignment app application array bitmap box c# c#gridviewcolumn check checkbox client color combo combobox communication concurrency control conversion csharp custom data database datagrid datagridview dataset datatable datetime degrees draganddrop drawing enabled encryption enum excel file focus form format forms function gdi+ getoutlookcontactusinfcsvfile globalization hospitalmanagementsystem image input install java list localization mandelbroth math messagebox microsoftc#visualexpress mono mouseclick mysql operator path photoshop picturebox pixelinversion plotting pointer post programming radians read regex remote remoting richtextbox server sleep socket sql sql-server statistics string stringformatting sun table text textbox thread time timer update usercontrol users validate validation visualstudio webbrowser winforms wpf xml






