Hi,

You have to change your XML file to the folowing:
<?xml version="1.0" encoding="UTF-8"?>
<gallery xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:noNamespaceSchemaLocation='personal.xsd'>
<image href="http://www.xfront.com/InSubway.gif"/>
</gallery>

You should use "xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; and
not "xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance";


-----Original Message-----
From: Rajan Gupta [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 5:20 PM
To: [EMAIL PROTECTED]
Subject: Xerces-J 1.4.1 problems with Schemas


For the following schema:
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
  <xsd:element name="gallery">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="image" maxOccurs="unbounded">
       <xsd:complexType>
        <xsd:attribute name="href" type="xsd:anyURI" use="required"/>
       </xsd:complexType>
      </xsd:element>
     </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>

For the following instance document:
<?xml version="1.0" encoding="UTF-8"?>
<gallery xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance";
   xsi:noNamespaceSchemaLocation='personal.xsd'>
<image href="http://www.xfront.com/InSubway.gif"/>
</gallery>

The parser reports:
[Error] personal-schema.xml:3:49: Element type "gallery" must be
declared.
[Error] personal-schema.xml:4:51: Element type "image" must be
declared.

Why is this behaving like this 1.4.1

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to