You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Tom T." <na...@turnerconsultingllc.com> on 2009/01/23 23:07:43 UTC

Proper way to escape invalid XML characters

I'm using Camel 1.2 and won't be able to upgrade for various reasons.  We are
encountering some Vertical Tabs (0xb) characters and would like to strip
them when Marshaling the message.

I am setting a JaxbDataFormat as the marshaller.  And I see it instantiates
a com.sun.xml.bind.v2.runtime.MarshallerImpl

But I'm not sure how to go about stripping out these invalid XML characters.

Any advice?
-- 
View this message in context: http://www.nabble.com/Proper-way-to-escape-invalid-XML-characters-tp21633526s22882p21633526.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Proper way to escape invalid XML characters

Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Jan 23, 2009 at 11:07 PM, Tom T. <na...@turnerconsultingllc.com> wrote:
>
> I'm using Camel 1.2 and won't be able to upgrade for various reasons.  We are
> encountering some Vertical Tabs (0xb) characters and would like to strip
> them when Marshaling the message.
>
> I am setting a JaxbDataFormat as the marshaller.  And I see it instantiates
> a com.sun.xml.bind.v2.runtime.MarshallerImpl
>
> But I'm not sure how to go about stripping out these invalid XML characters.
>
> Any advice?
Hi

Can you add a manual step such as a proceesor and use plain Java code
to "fix" the data?



> --
> View this message in context: http://www.nabble.com/Proper-way-to-escape-invalid-XML-characters-tp21633526s22882p21633526.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/