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

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



XML Model:


<Invoice xsi:schemaLocation="http://your_namespace
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" DocType="Delete">


                        <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">





Received on Friday, 23 January 2004 05:37:27 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:04 UTC