RE: Unexpected Error

I received the same error after adding the closing element tag.

-----Original Message-----
From: Smith, Tony [mailto:tony.smith@csfb.com] 
Sent: Wednesday, February 26, 2003 3:18 PM
To: 'Green, Paul M.'; 'xmlschema-dev@w3.org'
Subject: RE: Unexpected Error


Hi Paul,

You have no closing element tag. Try..

	<clientApplication></clientApplication>

Regards.



-----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)'.


This message is for the named person's use only. It may contain sensitive
and private proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. If
you are not the intended recipient, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify the
sender. You must not, directly or indirectly, use, disclose, distribute,
print, or copy any part of this message if you are not the intended
recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE
FIRST BOSTON or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT
SUISSE FIRST BOSTON reserve the right to monitor all e-mail communications
through its networks. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorized to state them to be the views of any such entity.
Unless otherwise stated, any pricing information given in this message is
indicative only, is subject to change and does not constitute an offer to
deal at any price quoted. Any reference to the terms of executed
transactions should be treated as  preliminary only and subject to our
formal written confirmation.

Received on Wednesday, 26 February 2003 15:21:00 UTC