Click here to Skip to main content
Sign Up to vote bad
good
I looked web but didn't found a good solution to create and parse a XML file in visual studio using visual c++.
As i have not used the XML file so don't have much idea.
The one who knows the good link to create and parse the XML file,please share it.
Posted 9 Oct '12 - 5:02

Comments
lewax00 - 9 Oct '12 - 11:07
For staters it doesn't matter if you use Visual Studio or not, that has no effect on how you would handle an XML file. And what is "Visual C++"? Do you mean native C++, or C++/CLI (C++ with .Net)?
Tarun Batra - 9 Oct '12 - 11:08
c++ with .net sir

4 solutions

How hard did you look? It took me less than 30 seconds to find these:
TinyXML[^]
Simple C++ XML Parser[^]
Expat[^]
 
These are all on the first page of results: C++ XML Parser[^]
  Permalink  
Comments
Tarun Batra - 17 Oct '12 - 2:26
sir my data is like this 1 c:\ c:\log debug 2 2 n1 80 s1 p1 0022 Make1 Model1 SN1 10.10.10.10 <Port>80</Port> 3000 Make3 Model3 SN3 30.30.30.30 <Port>80</Port> I used the code of TinyXML to parse and save the xml,i saw that there are 4 projects in TinyXML,can you please guide me which to use to parse the XML and then write it into the new XML file
Tarun Batra - 17 Oct '12 - 3:30
can you reply to following link http://www.codeproject.com/Questions/478037/QueriesplusregardingplusTinyXMLplusandplusanotherp
Since you're using .Net, I suggest reading How to: Parse XML with XmlReader[^].
  Permalink  
Comments
Tarun Batra - 17 Oct '12 - 3:30
can you reply to following link http://www.codeproject.com/Questions/478037/QueriesplusregardingplusTinyXMLplusandplusanotherp
Why you don't try this Wink | ;)
Using MSXML to read XML documents[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 239
1 OriginalGriff 173
2 Maciej Los 135
3 Mahesh Bailwal 104
4 Aarti Meswania 98
0 Sergey Alexandrovich Kryukov 10,214
1 OriginalGriff 7,819
2 CPallini 4,181
3 Rohan Leuva 3,522
4 Maciej Los 3,089


Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 10 Oct 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid