
On Thu, 03 Jul 2008 22:02:46 +0000, Preston A. Elder wrote:
- Spirit
terminate called after throwing an instance of 'boost::property_tree::xml_parser::xml_parser_error' what(): <unspecified file>: invalid character entity Aborted
I figured this one out, sorry. First, the XML I posted in the previous post parses just fine, but my app wasn't picking up the file (damn hard-coded filenames :P). The original file is failing to parse because I have things like: <prefix>[</prefix> In there. The spirit parser doesn't handle ... To be more correct, the exception is thrown by line 85 of xml_parser_utils.hpp, which on quick inspection, doesn't support '#' (or by extension #x). This is the root of the problem, as I noticed in the spirit parsing file, it DOES infact define what to do with num; tokens. So basically the parser utils has to be updated to support num; and such. Sorry for the confusion. PreZ :)