Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML Schema validation

From: usenet@--------------.---
To: NULL
Date: 9/10/2008 7:17:00 AM
On 8 Sep, 10:46, Piotre Ugrumov <afmul...@gmail.com> wrote:
> Hi,
> I have written this xml schema:
>
> ... cut ...
>
> When I try to validate the document I receive these errors:
>
> Validation =A0 =A0 =A07, 43 =A0 src-resolve: Cannot resolve the name 'XMF=
LOW' to
> a(n) 'type definition' component.

There's a typo there.  In:

<xs:element name=3D"XMLFLOW" type=3D"XMFLOW"/>
 <xs:complexType name=3D"XMLFLOW">

type=3D"XMFLOW" should go to type=3D"XMLFLOW".

> Validation =A0 =A0 =A019, 41 =A0s4s-elt-invalid-content.1: The content of
> 'PRODUCT' is invalid. Element 'element' is invalid, misplaced, or
> occurs too often.

The syntax for the complexTypes is wrong.  It should be something
like:

 <xs:complexType name=3D"PRODUCT">
  <xs:sequence>  <!-- This is added -->
   <xs:element name=3D"INFO" type=3D"INFO"/>
   ...
   </xs:sequence>
</xs:complexType>

HTH,

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://www.codalogic.com/lmx/ for more info




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent