[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XML Schema in JAXP1.2

jaxp1.2 download
Yes, that is the problem. Now it can be compiled.

However, does jaxp1.2 fully support XML Schema?

I got the following strange errors:

 Invalid attribute value for 'maxOccurs' in element 'all' ...

 {abstract} of the element declaration of '....' must be false...

It seems not to support these two attributes. 

Any idea?

Thanks for the great help.


On Tue, 8 Jul 2003, Olejarz, Greg wrote:

> You need to place the jars in
> ...\jwsdp-1.2\jaxp\lib\endorsed
> in
> <JAVA_HOME>\jre\lib\endorsed
> in order to override the jaxp 1.1 stuff
> that is part of jdk 1.4. 
> In addition, you will be replacing Crimson
> with Xerces.
> Greg
> -----Original Message-----
> From: Shen Xu [mailto:xushen@r...]
> Sent: Tuesday, July 08, 2003 1:07 PM
> To: xml-dev@l...
> Subject:  XML Schema in JAXP1.2
> Hi, 
> Does anybody have experiences with JAXP1.2?
> I am trying to valiidate an instance XML doc according to an XML Schema
> using JAXP1.2 .  According to the documentation, JAXP1.2 is supposed to 
> support XML Schema. However, I always got the error like "attributes are 
> not implemented", when I tried to set any XML Schema such as:
> try {
>   factory.setAttribute(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA);
> } 
> catch (IllegalArgumentException x) {
>   // Happens if the parser does not support JAXP 1.2
>   ...
> } 
> I installed both J2SE1.4.2 and JWSDP1.2, and I am using NetBeans to 
> develop my programs. 
> Do I need to do any further configurations?
> Thanks.
> Shen
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> The list archives are at http://lists.xml.org/archives/xml-dev/
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
> "Bringing people together to advance their lives." 
> NOTICE: The information contained in this electronic mail transmission is
> intended by TMP Interactive Inc. d/b/a Monster or one of its subsidiaries
> for the use of the named individual or entity to which it is addressed and
> may contain information that is privileged or otherwise confidential.  It is
> not intended for transmission to, or receipt by, any individual or entity
> other than the named addressee (or a person authorized to deliver it to the
> named addressee) except as otherwise expressly permitted in this electronic
> mail transmission. If you have received this electronic transmission in
> error, please delete it without copying or forwarding it, and notify the
> sender of the error by reply email or by calling Monster at 1-800-MONSTER.


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.