W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2003

Meaning of error in MSXML

From: <chris@publicbar.com>
Date: Thu, 25 Sep 2003 09:51:28 +1000
Message-ID: <002301c382f6$c599e9f0$1e0ba8c0@geckodev.breastscreen.org.au>
To: <xmlschema-dev@w3.org>

Hello,

Below is the error I get, I know its telling me that the type cannot be
simpleType or complexType.
But I don't understand why, I am obviously missing something.

./PRPA_MT101001.xsd#/schema[1]/complexType[position() = 1 and @name =
'PRPA_MT101001.IdentifiedPerson']/sequenc
e[1]/element[position() = 7 and @name = 'assigningOrganization']
'type' cannot be present with either 'simpleType' or 'complexType'.


Inside PRPA_MT101001.xsd i have:
<xs:complexType name="PRPA_MT101001.IdentifiedPerson">

<xs:sequence>

<xs:element name="effectiveTime" type="IVL_TS" minOccurs="0" maxOccurs="1"/>

<xs:element name="identifiedPerson" type="PRPA_MT101001.Person"
minOccurs="1" maxOccurs="1"/>

<xs:element name="assigningOrganization" minOccurs="1" maxOccurs="1"
nillable="true" type="COCT_MT150002.Organization"> <----*** problem

<xs:complexType>

<</xs:complexType>

PRPA_MT101001.xsd  includes COCT_MT150002.xsd which defines
COCT_MT150002.Organization

EG:

<xs:complexType name="COCT_MT150002.Organization">

<xs:sequence>

<xs:element name="id" type="II" minOccurs="1" maxOccurs="unbounded"/>

<xs:element name="code" type="CE" minOccurs="0" maxOccurs="1">

etc.....

effectiveTime and identifiedPerson doesn't seem to cause an error. Any tips
appreciated,

Thanks,

Chris.



IMPORTANT:  

This email transmission is intended for the exclusive use of 
the person, organisation, or corporation to which it is addressed,
and may contain information that is privileged or confidential.  
If the reader of this email transmission is not the intended 
recipient, or an employee or agent responsible for delivering this 
email transmission to the intended recipient, you are hereby notified
that any disclosure, distribution (forwarding) or copying of this 
email transmission is prohibited and that the contents must be kept 
strictly confidential.  

If you have received this email transmission in error, kindly notify us 
immediately by return email or telephone and delete email immediately.  

Thank you.
Received on Wednesday, 24 September 2003 19:51:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:39 GMT