W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2003

Problem with processContents="lax" in MSV

From: Goldner Zvi <Zvi_Goldner@icomverse.com>
Date: Tue, 31 Dec 2002 17:28:40 +0200
Message-ID: <385D702A9C11D511A9E90008C7160AD5329790@ismail1.comverse.com>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>

Hi all
I am using MSV in order to validate XMLs, but I am facing a problem with the
lax processing.
It seems like the lax is working fine with undeclared elements (it does not
validates elements which are not specified in the XSD), but it throws
validation error on undeclared elements, which contain attributes. This kind
of behavior does not happen in other validation tools (such as "XmlSpy" has,
for instance).
The XSD looks like:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified" attributeFormDefault="unqualified">
	<xs:element name="Root">
			<xs:sequence maxOccurs="unbounded">
				<xs:any processContents="lax"
	<xs:element name="InnerElement" type="xs:boolean"/>
The XML looks like:
<Root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	<UnDefineElement attr1="1"/>
The error tells about "unexpected attribute 'attr1'".
Is it a bug?
Can someone help?
Received on Sunday, 5 January 2003 04:00:35 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:59 UTC