I couldn't find this in the FAQ.

I'm using 1.4.4 and JAXP. I was trying to use SAXParserFactory's setValidating() to ask the underlying Xerces parser to be validating. Somehow that didn't work. I have to explicitly set it using

reader.setFeature("http://xml.org/sax/features/validation";, true);

        where reader is an instance of XMLReader.

I am OK with doing it that way but I do want to have the flexibility of swapping another parser for testing and thus prefer not to have parser specific codes.

Anyone else have experience on this?

Thanks.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to