Hi

I am trying to set 2 schemas in the externalschemaLocation property. The
first xsd has the any element with the processContents as "lax".

The apache site states that pairs of values can be set for this property.
http://xml.apache.org/xerces-j/properties.html


I have tried this property in the same way as in the example stated at
http://www.w3schools.com/schema/schema_complex_any.asp

The problem is that the parser does not pick up the second xsd. No
validation is done against the second xsd. I am using xerces 2.6.2. Please
let me know if i am missing anything.


I have attached the files that i have used for testing.

Please help!
nithya

Attachment: XMLTest1.java
Description: java/

Attachment: MyErrorHandler.java
Description: java/

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.nith.com"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="Product">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Books">
					<xs:complexType>
						<xs:sequence maxOccurs="unbounded">
							<xs:any namespace="http://www.api.com"; processContents="lax" minOccurs="0"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns="http://www.api.com"; elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="Book">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Title" type="xs:string"/>
				<xs:element name="Author" type="xs:string"/>
				<xs:element name="ISBN" type="xs:string"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>  

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

Reply via email to