Hi, Could anobody explain how to set default DTD for SAX2 parser (Xerces1.4.4)? I have to parse some XML documents with DOCTYPE declaration and some without it. If there isn't DOCTYPE declaration within XML document, then EntityResolver.resolveEntity(...) is never called! Validation is turned on. So I get errors showing that all element types undeclared... On input I can't establish the presence of DOCTYPE declaration inside XML document. So I can't just add line <!DOCTYPE ....> In earlier messages I found some info about the trick with 'reuseValidator' flag but when I looked into xerces source code I couldn't find such a variable. I found the similar flag XMLParser.fNeedReset but it is private and there is no possibility to unset it.
Could anybody say any hint how to deal with DTD in such cases? Ricka --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
