XML Schema gurus-
I have the Schema Catalogue.xsd and an instance of it Catalogue.xml. The
validator gives the below error , 
eventhough i have defined And , match elements in the schema. Please help
me.


Thank you Very much.
Rama


Catalogue.xml:
START createUI:Catalogue.xml
START refreshUI:Catalogue.xml
START getRoot:Catalogue.xml
!!! handleError: Element type "Search" must be declared.
Error in handleError. getCurrentNode()==null!
!!! handleError: Element type "And" must be declared.
!!! handleError: Element type "match" must be declared.
!!! handleError: Element type "match" must be declared.
START readXMLFileCatalogue.xml
END readXMLFileCatalogue.xml
END refreshUI:Catalogue.xml


Catalogue.xml
-------------------
<?xml version="1.0" encoding="UTF-8" ?> 
 <Search xmlns:xsi="http://www.w3.Org/2000/10/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="Catalogue.xsd"> 
 <And> 
<match property="CONTENT" value="transmembrane" /> 
<match property="CONTENT" value="HUMINSR" /> 
</And> 
</Search>

Catalogue.xsd
------------
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2000/10/XMLSchema";>
<complexType name="BaseType" abstract="true"/>
<element name="Base" type="BaseType" abstract="true"/>
<element name="And" substitutionGroup="Base" >
<complexType>
<element ref="Base" />
</complexType>
</element>
<element name="Search" >
<complexType>
<element ref="Base" minOccurs="1" />
</complexType>
</element>

</element>
<element name="match" substitutionGroup="Base" >
  <complexType>
    <simpleContent>
      <extension base="string">
        <attribute name="property" type="string"/>
        <attribute name="value" type="string"/>
      </extension>
    </simpleContent>
  </complexType>
</element>
 
</schema>


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

Reply via email to