harlow
I am having a problem trying to read a XML document, i had hear the simplest way is to a use a XMLTextReader, but i am not sure for how to implement it....
Regardsmaurice
Raven87 wrote: I am having a problem trying to read a XML document, i had hear the simplest way is to a use a XMLTextReader, but i am not sure for how to implement it...
I am having a problem trying to read a XML document, i had hear the simplest way is to a use a XMLTextReader, but i am not sure for how to implement it...
Hi Raven87, a pretty easy way I used is to use the XmlDocument object. With it, you can load in an xml for processing.
//C# using System.XML XmlDocument D= new XmlDocument(); D.Load("filename.xml"); //if the source xml is a file
//Do some changes, or read it, example: D.FirstChild.Value = "Hello World"; //Save the changes back to same file D.Save("filename.xml");
oic....thankz for the help, actually my name is maurice...haha...and actually i quite new to c#, so i still a bit blur, but thankz for the code, it really help me alot...