Hi Tony,
There was basically no 'ur-type' support (anyType/anySimpleType) in 1.4.1.
I put down some code to handle anyType/anySimpleType in CVS last week. So
if you grab the latest version, the problem you mentioned should go away.
But there are still problems with these types when they are used in
substitutionGroup or xsi:type.
Regards,
Sandy Gao
Software Developer, IBM Canada
(1-416) 448-3255
[EMAIL PROTECTED]
Tony Zhang/San
Jose/IBM@IBMUS To: [EMAIL PROTECTED]
cc:
07/18/2001 Subject: Schema Validating Error with
'anyType'
04:40 PM
Please respond
to
xerces-j-dev
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]