[xml] how to advance the xmlParserInput.cur?




Hi there
        I have a strang requirement for libxml2. During parsing a XML
document in the memory at some point I want to the parser to skip parsing
a chunk of memory, which is somehow guarnteed to just include a
well-balanced sub-tree. I modified the xmlParseContent function to skip a
chunk of memory when it detected a open tag. Any body can tell me the
correct and safe method to do that. By guess I tried the
xmlParserInputGrow, which seems doesn't change the xmpParserInput.cur at
all; Now my work around is just increaing the xmlParserInput.cur directly,
seems works well, but when file size is large, I got segment fault.

Any clue is appreciated.

Wei Lu
Computer Science Department
Indiana University




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]