Light weight C++ SAX XML parser

前端 未结 3 1637
难免孤独
难免孤独 2021-02-04 11:24

I know of at least three light weight C++ XML parsers: RapidXML, TinyXML and PugiXML. However, all three use a DOM based interface (ie, they build their own in-memory representa

相关标签:
3条回答
  • 2021-02-04 11:59

    you can try https://github.com/thinlizzy/die-xml . it seems to be very small and easy to use

    this is a recently made C++0x XML SAX parser open source and the author is willing feedbacks

    it parses an input stream and generates events on callbacks compatible to std::function

    the stack machine uses finite automata as a backend and some events (start tag and text nodes) use iterators in order to minimize buffering, making it pretty lightweight

    0 讨论(0)
  • 2021-02-04 12:07

    I've used expat when I needed to parse XML. It's very light-weight (well, it used to be; it's a while since I've done XML stuff) and does the job.

    0 讨论(0)
  • 2021-02-04 12:12

    PugiXML and RapidXML do not have DOM conforming interfaces.. those API came with severe limitations on functionalities and conformance. You might want to investigate VTD-XML that is signifiantly more advanced than either DOM or SAX/Pull

    0 讨论(0)
提交回复
热议问题