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

Can't validate simple xml file and schema!

From: Oliver Walter <oliver@owalter.co.uk>
Date: Thu, 8 Aug 2002 15:18:56 -0400 (EDT)
Message-ID: <NNJN2DA$OsU9Ewt+@tiara.demon.co.uk>
To: xmlschema-dev@w3.org




Using the xml-schema validator at:
http://www.w3.org/2000/09/webdata/xsv

Highly misleading error message (I am tearing my
hair in desperation!);
Error: Expected whitespace after public id
 in unnamed entity at line 1 char 59 of http://www.owalter.co.uk/stest1b
.xml
this message remained unchanged even when I modified both files (add,
remove comments in <!-- --> and added an undeclared tag in the xml file.

THE XML FILE
<?xml version="1.0"?>
<!-- first test of validation with a schema.
This .xml file does not contain the name of the schema -->
<a_tag>Tag contents is this text.
<!-- comment this out for the time being
 <contained_tag this_att="a_value"/> -->
</a_tag>

THE SCHEMA
<?xml version="1.0"?>
<!-- schema for first simple test -->
<xs:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema">
  <xs:element name="a_tag" type="xs:string"/>
</xs:schema>

From

oliver@owalter.co.uk
-- 
Oliver Walter
Received on Friday, 9 August 2002 07:48:52 GMT

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