M
Markus
I hava an applet/application which can validate an XML.
But there are some problems because the schemaLocation
In the xml-file the schemaLocation = "mySchema.xsd".
But if I start my app in a browser as applet the parser searches on the
local drive for mySchema.xsd.
This is not really the problem beacause I found out, that I can set the
Property
"http://apache.org/xml/properties/schema/external-schemaLocation" to
"myNameSpace url_to_mySchema.xsd"
The problem occours because mySchema.xsd (which is not really my schema
;-) )includes some "sub-schemas" in that way:
mySchema.xsd
....
<xsd:include schemaLocation = "mySchema_a.xsd"/>
<xsd:include schemaLocation = "mySchema_b.xsd"/>
...
The parses found mySchema.xsd on the given URL but searches mySchema_a
and _b under local driver anyway. :-/
Does anybody know a solution to configure the parser to load all XSDs
from a given URL?
-> I'm using JDOM and Xerces.
Kind regards
Markus
But there are some problems because the schemaLocation
In the xml-file the schemaLocation = "mySchema.xsd".
But if I start my app in a browser as applet the parser searches on the
local drive for mySchema.xsd.
This is not really the problem beacause I found out, that I can set the
Property
"http://apache.org/xml/properties/schema/external-schemaLocation" to
"myNameSpace url_to_mySchema.xsd"
The problem occours because mySchema.xsd (which is not really my schema
;-) )includes some "sub-schemas" in that way:
mySchema.xsd
....
<xsd:include schemaLocation = "mySchema_a.xsd"/>
<xsd:include schemaLocation = "mySchema_b.xsd"/>
...
The parses found mySchema.xsd on the given URL but searches mySchema_a
and _b under local driver anyway. :-/
Does anybody know a solution to configure the parser to load all XSDs
from a given URL?
-> I'm using JDOM and Xerces.
Kind regards
Markus