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

[xmlschema-dev] <none>

From: <Eamon.Galavan@risk.sungard.com>
Date: Thu, 14 Feb 2002 16:01:51 +0000
To: xmlschema-dev@w3.org
Message-ID: <OF62DEBC6C.F94A3535-ON80256B60.0057CE58@infinity.com>
I am having some problems getting to grips with the <any> key.
I have got the schema below with the <any> key.

<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="test5" targetNamespace="http://tempuri.org/test5.xsd"
elementFormDefault="qualified" xmlns="http://tempuri.org/test5.xsd" xmlns:
mstns="http://tempuri.org/test5.xsd" xmlns:xs="
     <xs:element name="Letters">
                    <xs:element name="a" type="a" />
                    <xs:element name="b" type="b" />
                    <xs:any processContents="skip"></xs:any>
     <xs:simpleType name="a">
          <xs:restriction base="xs:string" />
     <xs:simpleType name="b">
          <xs:restriction base="xs:string" />

If I add the data below

<?xml version="1.0" encoding="utf-8" ?>
<Letters xmlns="http://tempuri.org/test5.xsd">

I get the error that the schema does not support the element c.
If I remove the <c> then the validater complains that the data is
I just want to any data that I please, the does not need to be validated
after <b>
Can anyone what I am doing wrong?

Thanks in advance for any help you can give me.


This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

Received on Thursday, 14 February 2002 11:06:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:59 UTC