Hello
again,
In my
code I'm following exactly the lines of code presented in the sample code for
JAXP.
My
code includes:
1.
Instance of DocumentBuilderFactory
2.
setNamespaceAware = true
3.
setValidating = true
I put
the factory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaLanguage",
"http://www.w3.org/2001/XMLSchema");
in a try block which throws the IllegalArgumentException during
execution.
It
seems like the parser which is bundled with J2SE 1.4 (Crimson) does not support
JAXP 1.2
I get
the same Exception with xerces 2 (I replaced the JAXP implementation by putting
xerces2.jar at the top of the Classpath).
Do
xerces 2 and crimson support JAXP 1.2 ?
Am I
missing something here ?
-----Original Message-----
From: K. Venugopal [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 8:09 AM
To: [EMAIL PROTECTED]
Subject: Re: Problem with xml schema
Hi SHAY ,From: K. Venugopal [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 8:09 AM
To: [EMAIL PROTECTED]
Subject: Re: Problem with xml schema
Also set the below mentioned properties.
dbf.setNamespaceAware(true);
dbf.setAttribute(
"http://java.sun.com/xml/jaxp/properties/schemaLanguage",
"http://www.w3.org/2001/XMLSchema");
Regards
venu
Tim Cronin wrote:
see http://xml.apache.org/xerces2-j/faq-dom.html#faq-4 for better information... it's xalan but it also relates to xerces as well see http://xml.apache.org/xalan-j/faq.html#faq-N100CB-----Original Message----- From: SHAY [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 11, 2003 4:27 PM To: [EMAIL PROTECTED] Subject: Problem with xml schema Hello, I’m encountering a problem in parsing an XML document using the J2SE 1.4 DocumentBuilderFactory (Which should support JAXP 1.2). Background: I have created a well-formed XML document that is validated successfully against a W3C Schema (Located on the same machine). Successful validation is performed by the XML processor of Internet Explorer. So far so good… But, when I try to parse the document using the factory of J2SE 1.4 (JAXP 1.2 compatible), the ErrorHandler reports that each element (Starting from the root) is not declared. For some reason the parser cannot relate the schema to the instance document. The instance document is o.k. for sure, so how can I resolve this problem? Thanks Shay. << File: ATT07751.txt >>--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
