Mike,
Castor doesn't fetch any URLs specified in a namespace declaration. I know some versions of Xerces had bugs where Xerces actually tried to fetch the URL, so if it's happening you should try to switch your Xerces version.
Changing the namespace is a bad idea as the namespace itself is a URI that most likely doesn't point to any specific document but rather is a unique identifier for scope of one or more elements and attributes. If you change the namespace then Castor may not be able to unmarshal a document correctly as the namespace is typically embedded into the descriptor classes.
If you want to give a hint to the underlying XML parser as to where the schema for a particular namespace resides you could use xsi:schemaLocation. You could also supply your own EntityResolver to the parser.
--Keith
Mike Wannamaker wrote:
If I have a mapping file with a namespace, does castor use URL class to connect? So I could replace with some other protocol?
<mapping xmlns="http://castor.exolab.org/" xmlns:cst="http://castor.exolab.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" xsi:type="mapping">
Could be changed to
<mapping xmlns="ftp://mycastor.exolab.org/" xmlns:cst="ftp://mycastor.exolab.org/" xmlns:xsi="file://C:/2001/XMLSchema-instance" xmlns:p="mine://sun/xml/ns/portlet/portlet-app_1_0.xsd" xsi:type="mapping">
--ekiM R&D Hummingbird Core Services 613.548.4355 x4535
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
