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 Ian Richard Roberts <ir...@decisionsoft.com> on 2000/10/05 10:48:08 UTC
Re: Schema Validation
On Wed, 4 Oct 2000, Jerry Lawson wrote:
> I have been using SAXParser, not used DOMParser, but I also
> experienced schema validation problems. I found that removing the
> xmlns="theUri" from the <schema> declaration in the xsd file
> and setting the "http://apache.org/xml/features/validation/schema" to
> true
> was required to get SAX to parse/validate my input xml file
> against my xsd file.
>
> Have others seen this type of behavior, or am off-center on this ?
I maganed to get it working with the xmlns. I needed to set the
namespaces and validation features as well as schema validation.
> parser.setFeature("http://xml.org/sax/features/validation",
> true);
> parser.setFeature("http://xml.org/sax/features/namespaces",
> true);
Ian
--
Ian Roberts | ian@roberts.net (home)
DecisionSoft Ltd. | irr@decisionsoft.com (work)