Thanks Ralf

entityresolver looks like it's the way forward. What I am struggling with is
how I should inject this in the springbean definition of the castor
marshaller. I can see that the castor marshaller has the method, however the
oxm casto marshaller does not. Any ideas?

Neil.

2011/2/8 Ralf Joachim <[email protected]>

>  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