The StackOverflow question was for DOM. You can use the same approach
for Axiom, but instead of a DOMSource, use the SAXSource returned by
the following method:

http://ws.apache.org/axiom/apidocs/org/apache/axiom/om/OMContainer.html#getSAXSource(boolean)

Andreas

On Wed, Jul 11, 2012 at 3:53 PM, Stadelmann Josef
<josef.stadelm...@axa-winterthur.ch> wrote:
> Maybe that one helps
>
> http://stackoverflow.com/questions/1384802/java-how-to-indent-xml-generated-by-transformer
>
> Josef –
>
> there is a lot more in Google,
>
> also if you feed your stream into a file.xml and
>
> pass that file.xml to an InternetExplorer
>
> IE will format itself for display purpose.
>
>
>
>
>
>
>
> Von: Flavio Palumbo [mailto:flavio.palumb...@gmail.com]
> Gesendet: Mittwoch, 11. Juli 2012 15:01
> An: java-user@axis.apache.org
> Betreff: How to get a formatted OMElement content
>
>
>
> Hi all,
>
> how can I get a formatted XML from an OMElement ?
>
> For now I use the toString method but I get XML in one row, while Iwould
> like to have it with line breaks.
>
> Any hint would be appreciated.
>
>
> Flavio

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to