camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Sharpe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-10219) Add support in JAXB module to use injected CharacterEscapeHandler
Date Fri, 19 Aug 2016 22:16:20 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-10219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15428932#comment-15428932
] 

David Sharpe commented on CAMEL-10219:
--------------------------------------

Couldn't this be achieved using this feature documented on the Camel JAXB page (http://camel.apache.org/jaxb.html)?

{quote}
New for Camel 2.12.1
JaxbDataFormat now allows you to customize the XMLStreamWriter used to marshal the stream
to XML. Using this configuration, you can add your own stream writer to completely remove,
escape, or replace non-xml characters.
{code}
JaxbDataFormat customWriterFormat = new JaxbDataFormat("org.apache.camel.foo.bar");
customWriterFormat.setXmlStreamWriterWrapper(new TestXmlStreamWriter());
{code}

Or is the point to specifically support {{CharacterEscapeHandler}}?
{quote}

> Add support in JAXB module to use injected CharacterEscapeHandler
> -----------------------------------------------------------------
>
>                 Key: CAMEL-10219
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10219
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jaxb
>    Affects Versions: 2.18.0
>            Reporter: Siddharth Sharma
>            Assignee: Claus Ibsen
>             Fix For: 2.18.0
>
>
> There is no support in existing module to inject CharacterEscapeHandler in JAXB marshaller.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message