Re: Validation fails on setAttribute

Niedenzu Paul <[email protected]> Thu, 20 Feb 2003 17:00:12 +0100
Newsgroups gmane.comp.java.sun.xml.general
Message-ID <[email protected]>
Hi,
I got the same problem trying to parse XMLusing Xml schemas before
downloading and activating WSDK (webservices development kit)
The answer to your question is that the parsers from Weblogic and Oracle
probably do not support the new JAXP standard (yet) that enables you to set
these attributes.

best regards and good luck

Paul Niedenzu




                    Katz Guy
                    <Guy_Katz@ICOMVER        To:     [email protected]
                    SE.COM>                  cc:
                    Sent by: XML             Subject:     Validation fails on setAttribute
                    technologies in
                    the Java Platform
                    <XML-INTEREST@JAV
                    A.SUN.COM>


                    20-02-2003 16:46
                    Please respond to
                    XML technologies
                    in the Java
                    Platform





Hi;
Hi have a small problem and hope you can assist.
I am using the following code fragment taken from sun's XML tutorial, it is
a validating parser creation code:


static final String JAXP_SCHEMA_LANGUAGE = "
http://java.sun.com/xml/jaxp/properties/schemaLanguage";
static final String W3C_XML_SCHEMA = "http://www.w3.org/2002/XMLSchema";
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
dbf.setValidating(true);
try{
          dbf.setAttribute(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA);
}catch(Exception e){
      e.printStackTrace();
}
DocumentBuilder db = dbf.newDocumentBuilder();


With xerces, there is no problem but oracle and weblogic parsers fail in
the setAttribute method.
Is there something wrong here?
Thanks.


_______________________
Guy Katz
Chief Software Architect, CAP-IFS
Comverse
[email protected]
+972 3 7663686






****************************DISCLAIMER***********************************
Deze e-mail is uitsluitend bestemd voor de geadresseerde(n). Verstrekking
aan en gebruik door anderen is niet toegestaan. Bull Nederland N.V. sluit
iedere aansprakelijkheid uit die voortvloeit uit electronische verzending.

This e-mail is intended exclusively for the addressee(s), and may not be
passed on to, or made available for use by any person other than the
addressee(s). Bull Nederland N.V. rules out any and every liability
resulting from any electronic transmission.
*************************************************************************

-----------------------------------------------------
xml-interest: A list for discussing XML technologies in the Java Platform.
To post, mailto:[email protected]
Archives at: http://archives.java.sun.com/xml-interest.html
To unsubscribe, mailto:[email protected] the following message;
signoff xml-interest.