Xml read in C++
Windows Forms
3
Posts
3
Posters
2
Views
1
Watching
-
How can I read a Xml file from a window form? I want to know some useful function that I can use. Thanks.
-
How can I read a Xml file from a window form? I want to know some useful function that I can use. Thanks.
Samle code from MSDN
XmlDocument doc = new XmlDocument();
//Load the the document with the last book node. XmlTextReader reader = new XmlTextReader("books.xml"); reader.WhitespaceHandling = WhitespaceHandling.None; reader.MoveToContent(); reader.Read(); reader.Skip(); //Skip the first book. reader.Skip(); //Skip the second book. doc.Load(reader); doc.Save(Console.Out);
Cheers, Suresh