RE: Unexpected Error

That worked. Why is the prefix required?

Paul

-----Original Message-----
From: kboo@ca.ibm.com [mailto:kboo@ca.ibm.com] 
Sent: Wednesday, February 26, 2003 3:55 PM
To: Green, Paul M.
Cc: 'xmlschema-dev@w3.org'
Subject: RE: Unexpected Error


Try using the prefix for the target namespace for routingData.

<?xml version="1.0" encoding="UTF-8"?>
<p:routingData
             xmlns:p="http://app.co.com/ns/client"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://app.co.com/ns/client client.xsd"
>
             <clientApplication/>
</p:routingData>

- Ki

-----Original Message-----
From: Green, Paul M. [mailto:Paul.M.Green@FMR.com]
Sent: 26 February 2003 19:57
To: 'xmlschema-dev@w3.org'
Subject: Unexpected Error



Could someone tell me what I'm doing wrong?
I've got the following schema and XML files.
When WSAD tries to validate the XML I get the error message below.
Thanks,
Paul M Green


client.xsd
----------
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
             targetNamespace="http://app.co.com/ns/client"
             xmlns="http://app.co.com/ns/client"
             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
             <xsd:element name="routingData">
                         <xsd:complexType>
                                     <xsd:sequence>
                                                 <xsd:element name
="clientApplication"
type="xsd:string"/>
                                     </xsd:sequence>
                         </xsd:complexType>
             </xsd:element>
</xsd:schema>


client.xml
----------
<?xml version="1.0" encoding="UTF-8"?>
<routingData
             xmlns="http://app.co.com/ns/client"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://app.co.com/ns/client client.xsd"
>
             <clientApplication/>
</routingData>


WSAD 5 Error Message
--------------------
cvc-complex-type.2.4.a: Invalid content starting with element
clientApplication'. The content must match '("":clientApplication)'.

Received on Wednesday, 26 February 2003 16:19:55 UTC