Hi Kelly,
how did you compile Xerces? It could be that network support has been
explicitly disabled.
Alberto
Kelly Beard wrote:
I am running the sax2print demo program on my xml file. The sax2 api
appears to have a problem with the location of my xsd.
<rfid
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.innovativecomputingcorp.com/xsd/rfid"
xsi:schemaLocation="http://www.innovativecomputingcorp.com/xsd/rfid
http://www.innovativecomputingcorp.com/xsd/rfid.xsd">
This is the message I get:
Message: An exception occurred! Type:MalformedURLException,
Message:The URL used an unsupported protocol
If I do the following instead (and have my rfid.xsd in the same
directory as the xml):
<rfid
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.innovativecomputingcorp.com/xsd/rfid"
xsi:schemaLocation="http://www.innovativecomputingcorp.com/xsd/rfid
rfid.xsd">
It works fine. ??? I can view the xsd with the URL above so I know
that it exists.
sax2print -p -f -x=IBM037 rfid.xml
The version of Xerces we're using is something like 2.6. Perhaps HTTP
isn't a valid method to access an xsd with that version.