- From: Nathalie Furmento <n.furmento@doc.ic.ac.uk>
- Date: Mon, 3 Dec 2001 12:07:13 +0000
- To: xmlschema-dev@w3.org
Hi all,
I have a problem when trying to parse a document with the validation
feature switched on. It's working without problems if the validation
is turned off, but when i switch it on (i am using
xerces-2_0_0_beta3), i got the following error:
org.xml.sax.SAXException: cvc-elt.1: Cannot find the declaration of
element 'person'.
I include below the xml and xsd files.
Regards,
Nathalie
---------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<person xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="person.xsd">
<name>Isabelle</name>
<age>1234</age>
</person>
---------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<schema>
<element name="person">
<complexType>
<sequence>
<element name="name" type="string"/>
<element name="age" type="decimal"/>
</sequence>
</complexType>
</element>
</schema>
---------------------------------------------------------
--
-----------------------------------------------------------------------
Dr Nathalie Furmento, Research Associate
Imperial College of Science, Technology and Medicine
London E-Science Centre tel: +44 207-594-8310
180 Queen's Gate, London SW7 2BZ, UK fax: +44 207-581-8024
-----------------------------------------------------------------------
Received on Monday, 3 December 2001 07:07:15 UTC