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

RE: Validation against schema - invalid characters?

From: Julian Reschke <julian.reschke@gmx.de>
Date: Thu, 21 Feb 2002 14:52:53 +0100
To: <crosbyd@mdctech.com>, <xmlschema-dev@w3.org>
Message-ID: <JIEGINCHMLABHJBIGKBCGEEPEBAA.julian.reschke@gmx.de>
MSXML "works". You are just feeding non-wellformed XML into it.

If your input contains non-ASCII characters and doesn't happen to be encoded
in UTF-8 or UTF-16, you'll have to declare the actual encoding in the XML
declaration.

> -----Original Message-----
> From: xmlschema-dev-request@w3.org
> [mailto:xmlschema-dev-request@w3.org]On Behalf Of Dan
> Sent: Thursday, February 21, 2002 12:31 PM
> To: xmlschema-dev@w3.org
> Subject: Validation against schema - invalid characters?
>
>
> My XML document contains things like:
>
> <Unit External="Te/m" Internal="Te/m" Zero="0." Scale="1."
> Offset="0.">Te/m :: Te/m</Unit>
> <Unit External="kW/C" Internal="kW/C" Zero="0." Scale="1."
> Offset="0.">kW/C :: kW/C</Unit>
>
> Vaildation against:
>
> <xs:element name="Unit">
> 	<xs:complexType>
> 		<xs:simpleContent>
> 			<xs:extension base="xs:string">
> 				<xs:attribute name="Type"
> type="xs:string" use="optional"></xs:attribute>
> 				<xs:attribute name="External"
> type="xs:string" use="required"></xs:attribute>
> 				<xs:attribute name="Internal"
> type="xs:string" use="required"></xs:attribute>
> 				<xs:attribute name="Zero"
> type="xs:double" use="required"></xs:attribute>
> 				<xs:attribute name="Scale"
> type="xs:double" use="required"></xs:attribute>
> 				<xs:attribute name="Offset"
> type="xs:double" use="required"></xs:attribute>
> 			</xs:extension>
> 		</xs:simpleContent>
> 	</xs:complexType>
> </xs:element>
>
> using MXSXML4 fails claiming that  and  are illegal characters.
> If I use XML spy to do the validation, it doesn't complain. Anyone
> have any idea why this happens? And what can I do to get the
> MSXML parser to work??
>
>
Received on Thursday, 21 February 2002 08:53:26 GMT

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