XML Document Validation with an XML Schema
Subject:   Error coming
Date:   2007-01-09 14:15:25
From:   javanew
Hello Deepak, when I try to use catalog.xml and catalog.xsd, i get the following errors. Can you please give me some idea on why this error could be coming:

org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document '<xsd:schema xmlns:xsd=""> <xsd:element name="catalog"> <xsd:complexType> <xsd:sequence> <xsd:element ref="journal" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attribute name="title" type="xsd:string"/> <xsd:attribute name="publisher" type="xsd:string"/> </xsd:complexType> </xsd:element> <xsd:element name="journal"> <xsd:complexType> <xsd:sequence> <xsd:element ref="article" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attribute name="date" type="xsd:string"/> </xsd:complexType> </xsd:element> <xsd:element name="article"> <xsd:complexType> <xsd:sequence> <xsd:element name="title" type="xsd:string"/> <xsd:element ref="author" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="author" type="xsd:string"/></xsd:schema>', because
1) could not find the document;
2) the document could not be read;
3) the root element of the document is not <xsd:schema>.

1 to 1 of 1
1 to 1 of 1