W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2002

How to validate xml with undefined elements and attributesl

From: NeilS <neil.saxton@ntlworld.com>
Date: Sat, 4 May 2002 02:41:09 -0400 (EDT)
Message-ID: <000801c1f336$af80c540$89880450@NSLaptop>
To: <xmlschema-dev@w3.org>
Can anyone please suggest the correct way to ensure that a valid xml document may be correctly validated by a schema that does not contain all the elements or attributes that are included in the xml.
The reason for this is for development purposes - new elements are being added for prototyping and do not require validation, but the original data does necessitate validation.
I have tried using the any element but MSXML4 produces an error as it is unable to interpet the any as belonging to anthing other than those elements I have already declared.
<element name="aaaa" minOccurs="0" maxOccurs=unbounded"/>
<element name="bbbb" minOccurs="0" maxOccurs=unbounded"/>
<any namespace="##any" minOccurs="0" maxOccurs=unbounded"/>


Received on Saturday, 4 May 2002 06:40:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:01 UTC