XMLPULL in C++
"nickwoolley" <[email protected]>
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I've looked around a bit on Google and xmlpull.org, but can't see any signs of a C++ implementation of XMLPULL. Being impulsive, and being frustrated by the restrictions SAX2 imposes upon my design (I want de/serialisable XML objects), the other night I had a go at writing a C++ pull parser implementing parts of the API. I don't aim to make it perfect (yet), just usable. I got it compiling and running yesterday, but very imperfectly. I'm tidying up the first pass now, and I have a few questions, most relevantly: * Am I duplicating the efforts of someone else? But more specifically, when pondering how to expand / escape quoted attribute values (it seems that \ escaping isn't used, &entity; escaping is): * If entities encountered in attribute values should be expanded, should this be signalled as a token? On the one hand you might want the user to know about his user-defined entities, on the other, how would this work, when a start tag as a whole is a token in itself? i.e. How should this look, when parsing using XMLPULL? <tag attribute="some user defined &entity; & another"> Thanks, Nick