Hi,

At a first glance it seems you are defining the ROOT element as belonging to
the http://localhost:8080/axis namespace while in the instance document it
belongs to no namespace. Try to add a xmlns="http://localhost:8080/axis"; to
the ROOT element in your instance document.

All the best,
 George
-------------------------------------------------------------
George Cristian Bina mailto:[EMAIL PROTECTED]
COO - sync.ro
Phone  +40-(0)251-461480, +40-(0)251-461481
Fax       +40-(0)251-461482
Mobile +40-(0)723-224067
SyncRO Soft srl, Bd N. Titulescu 170, Craiova, 1100 - Romania
http://www.sync.ro
<oXygen/> XML Editor - http://www.oxygenxml.com/


----- Original Message -----
From: "Reiko Koehler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 04, 2003 4:45 PM
Subject: cvc-elt.1: Cannot find the declaration of element 'ROOT'


> Hi all,
>
> I wonder what I am doing wrong:
>
> I want to validate the following XML file:
>
> <ROOT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://localhost:8080/axis
http://localhost:8080/axis/schema.xsd";>
> <TAG_A>
>    ...
> </TAG_A>
> ...
> </ROOT>
>
> using the following "schema.xsd" file:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> targetNamespace="http://localhost:8080/axis";
xmlns="http://localhost:8080/axis";
> elementFormDefault="qualified">
>
>   <xsd:annotation>
>     <xsd:documentation xml:lang="en">Description of this document
> </xsd:documentation>
>   </xsd:annotation>
>     <xsd:element name="ROOT">
>     <xsd:complexType>
>       <xsd:sequence>
>         <xsd:element name="TAG_A" type="AType" minOccurs="0"
> maxOccurs="unbounded"/>
>         <xsd:element name="TAG_B" type="BType" minOccurs="0"
> maxOccurs="unbounded"/>
>         <xsd:element name="TAG_C" type="CType" minOccurs="0"
> maxOccurs="unbounded"/>
>         <xsd:element name="TAG_D" type="DType" minOccurs="0"
> maxOccurs="unbounded"/>
>       </xsd:sequence>
>     </xsd:complexType>
>     </xsd:element>
>   <xsd:complexType name="AType">
>     <xsd:all>
>       <xsd:element name="AElem1" type="xsd:decimal" minOccurs="0"/>
>       .....
>       <xsd:element name="AElemLast" type="xsd:decimal" minOccurs="0"/>
>     </xsd:all>
>   </xsd:complexType>
>   <xsd:complexType name="BType">
>     ...
>   </xsd:complexType>
>     ...
> </xsd:schema>
>
>
> It results in the message:
>
> cvc-elt.1: Cannot find the declaration of element 'ROOT'.
>
> Can anybody tell me the reason?
>
> Thanks,
> Reiko
>
> --
> +++ GMX - Mail, Messaging & more  http://www.gmx.net +++
> NEU: Mit GMX ins Internet. Rund um die Uhr f�r 1 ct/ Min. surfen!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to