- From: Rolf Schumacher <rolf.schumacher@hamburg.de>
- Date: Mon, 16 Feb 2004 23:38:48 +0100
- To: xmlschema-dev@w3.org
Received on Wednesday, 18 February 2004 16:02:29 UTC
I run an xml editor that's able to validate against xml schema. I have this very simple schema: <?xml version="1.0" encoding="UTF-8"?> <xsd:schema elementFormDefault="qualified" targetNamespace="http://www.example.org/testNamespace" xmlns="http://www.example.org/testNamespace" xmlns:xsd="http://www.w3.org/2001/XMLSchema" > <xsd:element name="root" type="xsd:string"/> </xsd:schema> It perfectly validates this instantiation: <?xml version="1.0" encoding="UTF-8"?> <ns:root xmlns:ns="http://www.example.org/testNamespace"> the string </ns:root> But it does not validate this one: <?xml version="1.0" encoding="UTF-8"?> <root xmlns="http://www.example.org/testNamespace"> the string </root> To be honest, I can't find a significant difference. I do not understand the error message: >unexpected attribute "xmlns"< that comes from a validation against the above schema. Just to make it very clear: Where is the error? In my input or in the validation? Thanks for help Rolf
Received on Wednesday, 18 February 2004 16:02:29 UTC