You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Taras Tielkes <ta...@info.nl> on 2001/11/08 14:52:56 UTC
FW: SAXParser says it's not validating while underlying XMLReader
is
-----Original Message-----
From: Taras Tielkes
Sent: Wednesday, November 07, 2001 2:47 PM
To: Xerces-J-User (E-mail)
Subject: SAXParser says it's not validating while underlying XMLReader
is
Hi,
It seems that the isValidating() method of the implementation of SAXParser
doesn't query the underlying XMLReader instance.
The following code:
-------------------
SAXParserFactory spf = SAXParserFactory.newInstance();
SAXParser sp = spf.newSAXParser();
XMLReader xr = sp.getXMLReader();
xr.setFeature("http://xml.org/sax/features/namespaces", true);
xr.setFeature("http://xml.org/sax/features/validation", true);
xr.setProperty(SCHEMA_PROP, schemaFile);
System.out.println("Reader validating: " +
xr.getFeature("http://xml.org/sax/features/validation"));
System.out.println("Parser validating: " + sp.isValidating());
-------------------
will say:
Reader validating: true
Parser validating: false
Is this the intended behaviour?
Thanks,
// tt
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
Re: FW: SAXParser says it's not validating while underlying XMLReaderis
Posted by Taras Tielkes <ta...@xs4all.nl>.
Hi,
I use the Xerces 1.4.3 release.
// tt
----- Original Message -----
From: "Edwin Goei" <ed...@sun.com>
To: <xe...@xml.apache.org>
Sent: Thursday, November 08, 2001 18:11
Subject: Re: FW: SAXParser says it's not validating while underlying
XMLReaderis
> Taras Tielkes wrote:
> >
> > will say:
> > Reader validating: true
> > Parser validating: false
> >
> > Is this the intended behaviour?
>
> What parser and version are you using?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
Re: FW: SAXParser says it's not validating while underlying XMLReaderis
Posted by Edwin Goei <ed...@sun.com>.
Taras Tielkes wrote:
>
> will say:
> Reader validating: true
> Parser validating: false
>
> Is this the intended behaviour?
What parser and version are you using?
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org