In the XML Schema Part 0: Primer, it talked about anyType in section 2.5.4.
However, when I am validating the following:
Instance file:
<?xml version="1.0" ?>
<nsm:message xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:nsm="mynamespace"
xsi:schemaLocation='mynamespace anyty.xsd' >
<nsm:from>[EMAIL PROTECTED]</nsm:from>
<nsm:to>all@mycom</nsm:to>
<nsm:subject>Mail Down</nsm:subject>
</nsm:message>
Schema file (anyty.xsd)
<?xml version="1.0" ?>
<schema xmlns='http://www.w3.org/2001/XMLSchema'
xmlns:nsm="mynamespace"
targetNamespace="mynamespace"
elementFormDefault="qualified">
<element name="message" type="nsm:email" />
<complexType name="email" >
<sequence>
<element name="from" type="string" />
<element name="to" type="anyType" />
<element name="subject" type="string" />
</sequence>
</complexType>
</schema>
I got an error: "Schema error: type not found :
http://www.w3.org/2001/XMLSchema:anyType".
I was using xerces1.4.1 with validation turned on.
What's wrong?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]