Re: Problem to validate XML with XML Schema

Ferrari GIanni <Ferrari.gi@apss.tn.it> writes:

> unfortunately I have at the same problem to validate an XML document across
> an easy XML Schema.

>  [Error] InvoiceXML.xml:4:21: cvc-elt.1: Cannot find the declaration of
> element 'Invoice'.
>
> <Invoice xsi:schemaLocation="http://localhost:8080
>                              http://localhost:8080/InvoiceXML.xsd" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance  http://localhost:8080"
                                                      ^^^^^^^^^^^^^^^^^^^^^^^
                                                      This is wrong, delete it

The XMLSchema-instance namespace declaration must consist _exactly_ of

  http://www.w3.org/2001/XMLSchema-instance

ht
-- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]

Received on Tuesday, 3 February 2004 09:49:19 UTC