Hi
I'am trying to validate my schema in xerces. However, I get the following errors. Can anybody help me solve them:
[Error] ITUblog.xsd:89:26: src-resolve.4: Components from namespace ' are not referenceable from schema document 'file:///C:/xerces/ITUblog.xsd'.
[Error] blog.xml:26:15: cvc-complex-type.2.4.a: Invalid content starting with element 'author'. The content must match '(EMPTY,EMPTY,EMPTY)'.
[Error] blog.xml:28:13: cvc-complex-type.2.4.a: Invalid content starting with element 'text'. The content must match '(EMPTY,EMPTY,EMPTY)'.
[Error] blog.xml:40:15: cvc-complex-type.2.4.a: Invalid content starting with element 'author'. The content must match '(EMPTY,EMPTY,EMPTY)'.
[Error] blog.xml:42:13: cvc-complex-type.2.4.a: Invalid content starting with element 'text'. The content must match '(EMPTY,EMPTY,EMPTY)'.
Here is my author definition:
<element name="author">
<complexType mixed="true">
<sequence>
<element name="name" minOccurs="0" maxOccurs="1"/>
<element name="email" minOccurs="0" maxOccurs="1"/>
</sequence>
</complexType>
</element>
My problem is that the author element either can be a simple element with only text or an element with only other elements inside it. How do I define that!
Thanks for any help
Rasmus
I'am trying to validate my schema in xerces. However, I get the following errors. Can anybody help me solve them:
[Error] ITUblog.xsd:89:26: src-resolve.4: Components from namespace ' are not referenceable from schema document 'file:///C:/xerces/ITUblog.xsd'.
[Error] blog.xml:26:15: cvc-complex-type.2.4.a: Invalid content starting with element 'author'. The content must match '(EMPTY,EMPTY,EMPTY)'.
[Error] blog.xml:28:13: cvc-complex-type.2.4.a: Invalid content starting with element 'text'. The content must match '(EMPTY,EMPTY,EMPTY)'.
[Error] blog.xml:40:15: cvc-complex-type.2.4.a: Invalid content starting with element 'author'. The content must match '(EMPTY,EMPTY,EMPTY)'.
[Error] blog.xml:42:13: cvc-complex-type.2.4.a: Invalid content starting with element 'text'. The content must match '(EMPTY,EMPTY,EMPTY)'.
Here is my author definition:
<element name="author">
<complexType mixed="true">
<sequence>
<element name="name" minOccurs="0" maxOccurs="1"/>
<element name="email" minOccurs="0" maxOccurs="1"/>
</sequence>
</complexType>
</element>
My problem is that the author element either can be a simple element with only text or an element with only other elements inside it. How do I define that!
Thanks for any help
Rasmus