Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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:02am
Comments
lewax00 at 9-Oct-12 11:07am
   
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 at 9-Oct-12 11:08am
   
c++ with .net sir
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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 at 17-Oct-12 2:26am
   
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 at 17-Oct-12 3:30am
   
can you reply to following link http://www.codeproject.com/Questions/478037/QueriesplusregardingplusTinyXMLplusandplusanotherp
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Since you're using .Net, I suggest reading How to: Parse XML with XmlReader[^].
  Permalink  
Comments
Tarun Batra at 17-Oct-12 3:30am
   
can you reply to following link http://www.codeproject.com/Questions/478037/QueriesplusregardingplusTinyXMLplusandplusanotherp
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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)



Advertise | Privacy | Mobile
Web03 | 2.8.141022.2 | Last Updated 10 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100