1

I have an xml file to be parsed for the information contained to be further used. Can anyone help me with the xerces C++ code for parsing it? I have the xml creation code using xerces library as well in C++.

1 Answer 1

2

Maybe this doesn't help you much if you're already committed to xerces, but I'd recommend using pugixml instead. It's very easy to integrate, is very performant and has excellent documentation. I built a rather large project using it and had nothing but good experiences with it. It's of the nicest libraries I've ever used. (I'm not affiliated with them; just very happy).

Here is the documentation on parsing files: http://pugixml.googlecode.com/svn/tags/latest/docs/manual/access.html

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks for the recommendation. It would be very helpful if you could show me a code snippet as to how to write and parse xml files using pugixml.
The quickstart guide has that. pugixml.googlecode.com/svn/tags/latest/docs/… There are expanded examples in the full manual. pugixml.googlecode.com/svn/tags/latest/docs/manual/toc.html That source code is in the download of the source.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.