Elliott Perkins wrote:
> [snipped] The question
> is "how do you use DOMParser to parse multiple XMLs within the same
> session"? Other than the call to XMLPlatformUtils::Initialize(), are
> there other initialization calls that are required in order to setup the
> DOMParser?
You cannot call XMLPlatformUtils::Initialize(); again after
XMLPlatformUtils::Terminate(); within the same
process. See http://xml.apache.org/xerces-c/faq-parse.html#faq-25 for
further detail.
To parse multiple XMLs using the same parser, just loop the parse method
like:
for (i=0, i<numOfFiles; i++) {
parser.parse(xmlFile[i]);
}
You can optionally call DOMParser::reset() to reset the parser state as
documented, although, the scanner will also call this method internally to
reset the states.
But please remember, don't call XMLPlatformUtils::Initialize/Terminate pair
multiple times.
Tinny.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]