M
Morten Holt
Hello group
I'm having issues validating some XML against a schema.
I'm getting the error:
org.jdom.input.JDOMParseException: Error on line 4: cvc-elt.1: Cannot
find the declaration of element 'simpleserver'.
The XML is:
<?xml version="1.0" encoding="UTF-8"?>
<simpleserver xmlns="http://simpleserver.t-hawk.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://simpleserver.t-hawk.com
SimpleServer.xsd">
<general>
<host>192.168.0.12</host>
<port>10001</port>
<logger>FileLogger</logger>
<loglevel>4</loglevel>
<password>...</password>
<logpass>...</logpass>
</general>
</simpleserver>
and as you can see the schema is located at
http://simpleserver.t-hawk.com/SimpleServer.xsd
I know it won't validate against the schema, but it should at least
validate the root element.
Any ideas and solutions would be more than welcome.
I'm having issues validating some XML against a schema.
I'm getting the error:
org.jdom.input.JDOMParseException: Error on line 4: cvc-elt.1: Cannot
find the declaration of element 'simpleserver'.
The XML is:
<?xml version="1.0" encoding="UTF-8"?>
<simpleserver xmlns="http://simpleserver.t-hawk.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://simpleserver.t-hawk.com
SimpleServer.xsd">
<general>
<host>192.168.0.12</host>
<port>10001</port>
<logger>FileLogger</logger>
<loglevel>4</loglevel>
<password>...</password>
<logpass>...</logpass>
</general>
</simpleserver>
and as you can see the schema is located at
http://simpleserver.t-hawk.com/SimpleServer.xsd
I know it won't validate against the schema, but it should at least
validate the root element.
Any ideas and solutions would be more than welcome.