W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2004

ERROR With XML Schema

From: Ferrari GIanni <Ferrari.gi@apss.tn.it>
Date: Fri, 23 Jan 2004 11:37:40 +0100
Message-ID: <D11D57B75A3CD411BF7F00E018C3356F0182FBA0@NTGEN05>
To: xmlschema-dev@w3.org
Goodmorning,

i'm trying again to parser an XML Structure by XML Schema. I did some
corrections, but now, my parser shows this message:

 

[Error] InvoiceXML.xml:1:174: cvc-elt.1: Cannot find the declaration of
element 'Invoice'.

 

What kind of error is it? What does error mean?

Maybe I have to add some instruction system on the XML Structure or XML
Schema, but the parser of XMLWriter give me all correct. Why Xerces (I'm
using 2.6.0 version) give me this error? With DTD all is ok, but when I try
to use an XML Schema I have this error.

For more information I posted under the message the initial code of the XML
Model and XML Schema.

Please write me soon... Thanks a lots.

Regards from Italy

           Gianni

 

XML Model:

 

<Invoice xsi:schemaLocation="http://your_namespace
file://C:\Lavoro\Java\xerces-2_6_0\data\InvoiceXML.xsd"
xmlns="http://your_namespace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" DocType="Delete">

            <DocumentSender>

                        <Company LegalName=""....

............

.........

 

How I can have a namespace? Can I try one for default?

 

 

XML Schema:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<xsd:element name="Invoice">

<xsd:complexType>

<xsd:sequence>.........

.........

...............

...
Received on Friday, 23 January 2004 05:37:27 GMT

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