Axis2 always creates XMLStreamReader/Writer objects using org.apache.axiom.om.util.StAXUtils and this class manages the factories. In version 1.2.9 of Axiom (currently under development) there is a new mechanism that allows to set properties on these factories, as described in [1]. Unfortunately this is limited to properties of type String, Integer and Boolean. This gives you two options:
1) Hack StAXUtils so that it sets P_TEXT_ESCAPER. This means that you have to create your own version of that class and repackage axiom-api-x.x.x-jar. 2) There will be some other enhancements in StAXUtils (in particular to solve AXIS2-4450), and probably these changes will provide (or may be easily extended to provide) hooks that would allow to do this type of customizations. My recommendation: If you are impatient, go for solution 1. If you need a proper solution that will be part of the next Axis2 release, wait for solution 2. Andreas [1] http://people.apache.org/~veithen/axiom/userguide/ch04.html#d0e753 On Mon, Aug 17, 2009 at 17:46, twosnac<[email protected]> wrote: > > Hey Andreas, > > This seems to be what I would hijack with mine own type to do the escaping I > need. > > http://woodstox.codehaus.org/3.2.8/javadoc/org/codehaus/stax2/XMLOutputFactory2.html#P_TEXT_ESCAPER > http://woodstox.codehaus.org/3.2.8/javadoc/org/codehaus/stax2/XMLOutputFactory2.html#P_TEXT_ESCAPER > > I'm not clear on where to set this properties or where to get access to > these factories in the whole Axis flow. Can you give me a general pointer > regarding this? > -- > View this message in context: > http://www.nabble.com/Greater-than%27s-not-being-escaped-in-content-of-element-in-response-tp24948530p25009230.html > Sent from the Axis - User mailing list archive at Nabble.com. > >
