I am trying to get a working schema validation, and I'm hitting a hangup:
Context: db:open("Test","NewXMLSchema.xsd") <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns=" http://www.example.org/NewXMLSchema" targetNamespace=" http://www.example.org/NewXMLSchema" elementFormDefault="qualified"> <element name="test" type="tns:test"/> <complexType name="test"> <sequence> <element name="item" type="string" maxOccurs="unbounded" minOccurs="1"/> </sequence> </complexType> </schema>
db:open("Test","NewFile1.xml") <tns:test xmlns:tns="http://www.example.org/NewXMLSchema" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.example.org/NewXMLSchema NewXMLSchema.xsd "> tns:itemPoke</tns:item> tns:itemPoke</tns:item> tns:itemPoke</tns:item> </tns:test>
Test Code: declare namespace tns = "http://www.example.org/NewXMLSchema"; validate:xsd-info("/tns:test", db:open("Test","NewXMLSchema.xsd"))
The error message I get back is "Fatal: Content is not allowed in prolog."
Any ideas what's going on?
Paul
shoutout to the the people behind eclipse and the Eclipse XML Editors and Tools for some really awesome development software!