I've got the following really simple schema :
<?xml version="1.0" ?>
<xs:schema targetNamespace ="urn:503A2B 4E-B364-47a4-AE5C-16E727275A70"
xmlns:mstns="ur n:503A2B4E-B364-47a4-AE5C-16E727275A70"
xmlns="urn:503A 2B4E-B364-47a4-AE5C-16E727275A70"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
attributeFormDe fault="qualifie d" elementFormDefa ult="qualified" >
<xs:element name="SMSAdapte r" >
<xs:complexType >
<xs:sequence>
<xs:element name="phone" type="xs:string " minOccurs="0" />
<xs:element name="message" type="xs:string " minOccurs="0" />
<xs:any namespace="##an y" processContents ="skip" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
When I read the following xml
<?xml version="1.0" encoding="utf-8" ?>
<sms:SMSAdapt er xmlns:sms="urn: 503A2B4E-B364-47a4-AE5C-16E727275A70">
<sms:phone>0401 328893</sms:phone>
<sms:message>So uth Africa 256/6 after 65 overs</sms:message>
</sms:SMSAdapter>
I get the error
The content model must be deterministic. Wildcard declaration along with a
local element declaration causes content model to become ambiguous. An error
occurred at file:///D:/Adapter.xsd(4, 4).
What exactly is wrong with this I need the schema to be expanded with
elements I don't understand or care about hence the xsd:any element.
Please help
Robert.