"Murphy, James" <[EMAIL PROTECTED]> writes: > If you are multithreaded (which I assume given your question) cache the > parser on a per thread basis. If are you worried about re-entrancy in a > single thread parse will throw an exception on subsequent calls if there is > a parse happening. (fParseInProgress flag)
Hey Jim, I have a related problem, which is I am attempting to resuse a single parser instance in my XMLCONF test suite. I parse each xml snippet, and then parser->reset() afterwards. However this does not appear to work if an exception occurred during parsing. The parser seems to be in some state where it refuses to be reset, and so a further call to parse() causes a parse in progress exception. How does one go about properly resetting the parser after errors, and/or how does one cancel a parse in progress? Cheers, jas. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
