W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2003

Unexpected Error

From: Green, Paul M. <Paul.M.Green@FMR.com>
Date: Wed, 26 Feb 2003 14:57:20 -0500
Message-ID: <D7A5D67F3D4DD411BE4000508BDF9B7406CDD2F1@MSGMMK579NTS.fmr.com>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>

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 14:59:32 GMT

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