On 13 Jul 2003 at 15:57, Vinay Shukla wrote:
> How do you get hold of the parser. If you use jaxp1.2 apis xerces
> behaviour is as per specified in the jaxp1.2 spec.
>
> As per the jaxp1.2 spec if schema language property is set the document
> will only be validated against a schema and never against a dtd.
Well, I'm using the sax.Counter sample program. I see from the
source that it is getting its default parser like so:
parser =
XMLReaderFactory.createXMLReader(DEFAULT_PARSER_NAME);
Where "DEFAULT_PARSER_NAME" is
org.apache.xerces.parsers.SAXParser
I'm not sure if this is the Jaxp API or not.
When you say "never against a DTD" do you mean that it won't
even process the internal DTD subset? I need it to at least
find the entity definitions there... even though the parser
should use the schema for validation.
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]