Click here to Skip to main content
15,912,837 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to extract specific data form an xml file using c++ language. how to do it?
Posted

If you're not scared by COM, then have a look at MSXML library [^], [^].
:)
 
Share this answer
 
You can also have a look at tinyXML[^]. It is a simple and lightwright XML library.
 
Share this answer
 
...and if you don't want to mess about with COM and don't fancy the DOM model that tinyXML presents then expat[^] works pretty well.

I've found the more complicated the XML the better TinyXML is as it presents a DOM tree. For simpler or flatter structures expat blows it away in how much memory it uses.

Just out of interest... TinyXML and expat are portable so if you ever fancy porting your code to something that's not windows then they (or something like them) are the way to go.

Cheers,

Ash
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900