Most Lite-Weight XML Parser with XPath and Wide-char Support

Posted by Mystagogue on Stack Overflow See other posts from Stack Overflow or by Mystagogue
Published on 2010-06-03T23:21:32Z Indexed on 2010/06/10 11:12 UTC
Read the original article Hit count: 318

Filed under:
|
|
|
|

I want a lite-weight C++ XML parser/DOM that:

  1. Can take UTF-8 as input, and parse into UTF-16. Maybe it does this directly (ideal!), or perhaps it provides a hook for the conversion (such as taking a custom stream object that does the conversion before parsing).
  2. Offers some XPath support.

I've been looking at RapidXML, the Kranf xmlParser, and pugiXML. The first two of those might permit requirement #1 by way of a hook. The third, pugiXML, supports the #2 requirement. But none of those three fulfill both requirements.

What is the smallest (free) library that can handle both requirements?

© Stack Overflow or respective owner

Related posts about c++

Related posts about Xml