Please find the attached files.
regards,
Pavani
> Date: Thu, 30 Aug 2001 20:32:13 -0700 (PDT)
> From: Ken Yang <[EMAIL PROTECTED]>
> Subject: Re: Fwd: [Bug 2856] - XML validation against Schema doesn't work for
Xerces parsers 1.4 and 2_0 alpha
> To: Pavani Mukthipudi <[EMAIL PROTECTED]>
>
>
> Hi,
> Thank you for your response. I had problem with 1.4.x using the same piece of
code. When validating xml (with name space) against schema, the validation never
kicks in as if nothing happened even though the document saying supported.
> Are you sure it works? If does, would you mind send me a sample java code, the
xml file, the schema file and the run batch file with classpath setting?
> Regards,
> Ken
> Pavani Mukthipudi <[EMAIL PROTECTED]> wrote:
> Hi Ken,
>
> Schema support is provided in Xerces 1.4.x but not yet in Xerces2.
> So your sample code should work with xerces 1.4.x but, obviously, won't work
> with xerces2.
>
> regards,
> Pavani
>
>
> > Date: Wed, 29 Aug 2001 18:09:07 -0700 (PDT)
> > From: Ken Yang
> > Subject: Fwd: [Bug 2856] - XML validation against Schema doesn't work for
> Xerces parsers 1.4 and 2_0 alpha
> > To: [EMAIL PROTECTED]
> >
> >
> > You confused me. Is it solved? Does it work? What do you have to do to make
it
> > work given my sample code.
>
> --
>
> Pavani Mukthipudi
> Sun Microsystems Inc.
>
> Phone: 080 - 2298989 Extn: 87390
>
>
> ---------------------------------
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger.
--
Pavani Mukthipudi
Sun Microsystems Inc.
Phone: 080 - 2298989 Extn: 87390
<?xml version="1.0" ?>
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:po1="http://www.example.com/PO1"
targetNamespace="http://www.example.com/PO1"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:complexType name="USAddress">
<xsd:sequence>
<xsd:element name="name" type="string"/>
<xsd:element name="street" type="string"/>
<!-- etc. -->
</xsd:sequence>
</xsd:complexType>
<xsd:element name="comment" type="string"/>
<xsd:complexType name="PurchaseOrderType">
<xsd:sequence>
<xsd:element name="shipTo" type="po1:USAddress"/>
<xsd:element name="billTo" type="po1:USAddress"/>
<xsd:element ref="po1:comment" minOccurs="0"/>
<!-- etc. -->
</xsd:sequence>
<!-- etc. -->
</xsd:complexType>
<xsd:element name="purchaseOrder" type="po1:PurchaseOrderType"/>
</xsd:schema>
<?xml version="1.0"?>
<po:purchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:po="http://www.example.com/PO1"
xsi:schemaLocation="http://www.example.com/PO1 po1.xsd">
<po:shipTo>
<po:name>Alice Smith</po:name>
<po:street>123 Maple Street</po:street>
</po:shipTo>
<po:billTo>
<po:name>Robert Smith</po:name>
<po:street>8 Oak Avenue</po:street>
</po:billTo>
<po:comment>Hurry, my lawn is going wild!</po:comment>
</po:purchaseOrder>
Validate.java
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]