Xml in C++
-
Can someone tell me what function can I use to read an Xml file, from an window form? Thanks!
Have you tried TinyXML?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Can someone tell me what function can I use to read an Xml file, from an window form? Thanks!
I think it might help to know exactly what you need to do with the XML file after loading it. Do you need to parse it and extract data, add/modify data to it, or simply render (display) it in some way? Also, you mention "window form", which is damn close to "windows forms", which sounds .NET-ish. If you are asking how to do this on the .NET platform, I suggest asking with more details in a .NET-specific forum (like the C# forum). Peace!
-=- James
Please rate this message - let me know if I helped or not! * * *
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles -
I think it might help to know exactly what you need to do with the XML file after loading it. Do you need to parse it and extract data, add/modify data to it, or simply render (display) it in some way? Also, you mention "window form", which is damn close to "windows forms", which sounds .NET-ish. If you are asking how to do this on the .NET platform, I suggest asking with more details in a .NET-specific forum (like the C# forum). Peace!
-=- James
Please rate this message - let me know if I helped or not! * * *
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles -
I think it might help to know exactly what you need to do with the XML file after loading it. Do you need to parse it and extract data, add/modify data to it, or simply render (display) it in some way? Also, you mention "window form", which is damn close to "windows forms", which sounds .NET-ish. If you are asking how to do this on the .NET platform, I suggest asking with more details in a .NET-specific forum (like the C# forum). Peace!
-=- James
Please rate this message - let me know if I helped or not! * * *
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFilesActually, the C++/CLI forum might be what this poster wants.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
-
If you are using .NET and C++/CLI, you can use the System.Xml namespace to access classes such as XmlDocument and XmlReader to extract XML from a file. If you are using "native" Visual C++, you can use MSXML or XmlLite from Microsoft. Except for XmlLite, there are a lot of articles on Code Project and other sites (Can you Google?). XmlLite is new but their is an article about this or last month's MSDN Magazine. Example code for MSXML is not very plentiful also.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
-
Can someone tell me what function can I use to read an Xml file, from an window form? Thanks!
-
Can someone tell me what function can I use to read an Xml file, from an window form? Thanks!
See A simple STL based XML parser[^] and http://www.codeguru.com/Cpp/I-N/ieprogram/displayinginformation/article.php/c10923[^] if helpfuls
WhiteSky