RE: Validation against schema - invalid characters?

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 UTC