I've got the following really simple schema :
<?xml version="1.0" ?>
<xs:schema targetNamespace="urn:503A2B4E-B364-47a4-AE5C-16E727275A70"
xmlns:mstns="urn:503A2B4E-B364-47a4-AE5C-16E727275A70"
xmlns="urn:503A2B4E-B364-47a4-AE5C-16E727275A70"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:element name="SMSAdapter" >
<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="##any" processContents="skip" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
When I read the following xml
<?xml version="1.0" encoding="utf-8" ?>
<sms:SMSAdapter xmlns:sms="urn:503A2B4E-B364-47a4-AE5C-16E727275A70">
<sms:phone>0401328893</sms:phone>
<sms:message>South 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.