Hi Neil,

not sure if one of below hints will help.

- Have a look at castor.properties file at property:
org.exolab.castor.xml.nspackages

- Try to set an EntityResolver. An example would be:
org.exolab.castor.util.DTDResolver

Regards
Ralf

Am 08.02.2011 18:15, schrieb Neil Stamps:
> Hi
>
> I am trying to sort out a problem with marshalling xml in a closed
> environment (i.e. one that does not have internet access for security
> reasons). 
>
> I have an xml document with document type:
>
> <!DOCTYPE svc_result PUBLIC "-//OMA//DTD svc_result 3.2//EN"
> "http://www.openmobilealliance.org/Tech/DTD/MLP_SVC_RESULT_320.DTD";>
>
> However this external URL is not available in our live environment,
> and so the marshalling fails to access the DTD - resulting in failure.
> What is the recommended way to use castor in this type of environment.
> Can I specify an alternative location for the DTD, holding it locally
> perhaps?
>
> I do not have control over the XML document which is being sent to me,
> I would like to validate against the DTD - but if I need to bypass
> this I will.
>
> Thanks for any help you can give
>
> Neil.


-- 

Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany

Tel.   +49 7071 3690 52
Mobil: +49 173 9630135
Fax    +49 7071 3690 98

Internet: www.syscon.eu
E-Mail: [email protected]

Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim

Reply via email to