You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Paul Wilton <Pa...@bbc.com> on 2009/11/19 14:58:31 UTC
RE: pretty printing XML - AtomFeedProvider
Hi Sergey
Any chance you could expose a method on the AtomFeedProvider and
AtomEntryProvider to turn on/off pretty printing of the ATOM generated
by these providers.
The underlying Abdera ATOM writers have a configuration option to pretty
print:
See:
http://cwiki.apache.org/ABDERA/custom-writers.html
thanks
Paul
bbc.co.uk
-----Original Message-----
From: Sergey Beryozkin [mailto:sberyozk@progress.com]
Sent: 19 November 2009 10:43
To: users@cxf.apache.org
Subject: Re: pretty printing XML
Hi
> >>
>> <bean id="jaxbProvider"
>> class="org.apache.cxf.jaxrs.provider.JAXBElementProvider">
>> <property name="marshallerProperties">
>> <map>
>> <entry key="jaxb.formatted.output">
>> <value type="java.lang.Boolean">true</value>
>> </entry>
>> </map>
>> </property>
>> </bean>
>>
<snip/>
>>
> This sounds good. Does it only work if you use jaxb?
>
Yes, only if JAXB is used...What databinding technology do you use ?
Note we have an XmlBeans jaxrs provider which was contributed
to CXF awhile back, but at the moment it does not accept any external
configuration, which would be easy to fix. Also, one can
delegate to the CXF XMLBeans DataBinding which can be used by JAXWS
services with the help of the DataBinding jaxrs provider
(similarly for SDO); not sure if Aegis supports pretty-printing...
cheers, Sergey
> M.
> --
> I keep six honest serving-men (They taught me all I knew); Their names
are
> What and Why and When And How and Where and Who.
>
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this
This e-mail has been sent by one of the following wholly-owned subsidiaries of the BBC:
BBC Worldwide Limited, Registration Number: 1420028 England, Registered Address: BBC Media Centre, 201 Wood Lane, London, W12 7TQ
BBC World News Limited, Registration Number: 04514407 England, Registered Address: BBC Media Centre, 201 Wood Lane, London, W12 7TQ
BBC World Distribution Limited, Registration Number: 04514408, Registered Address: BBC Media Centre, 201 Wood Lane, London, W12 7TQ
Re: pretty printing XML - AtomFeedProvider
Posted by Sergey Beryozkin <sb...@progress.com>.
Hi Paul
Good idea, will do
thanks, Sergey
----- Original Message -----
From: "Paul Wilton" <Pa...@bbc.com>
To: <us...@cxf.apache.org>
Sent: Thursday, November 19, 2009 1:58 PM
Subject: RE: pretty printing XML - AtomFeedProvider
Hi Sergey
Any chance you could expose a method on the AtomFeedProvider and
AtomEntryProvider to turn on/off pretty printing of the ATOM generated
by these providers.
The underlying Abdera ATOM writers have a configuration option to pretty
print:
See:
http://cwiki.apache.org/ABDERA/custom-writers.html
thanks
Paul
bbc.co.uk
-----Original Message-----
From: Sergey Beryozkin [mailto:sberyozk@progress.com]
Sent: 19 November 2009 10:43
To: users@cxf.apache.org
Subject: Re: pretty printing XML
Hi
> >>
>> <bean id="jaxbProvider"
>> class="org.apache.cxf.jaxrs.provider.JAXBElementProvider">
>> <property name="marshallerProperties">
>> <map>
>> <entry key="jaxb.formatted.output">
>> <value type="java.lang.Boolean">true</value>
>> </entry>
>> </map>
>> </property>
>> </bean>
>>
<snip/>
>>
> This sounds good. Does it only work if you use jaxb?
>
Yes, only if JAXB is used...What databinding technology do you use ?
Note we have an XmlBeans jaxrs provider which was contributed
to CXF awhile back, but at the moment it does not accept any external
configuration, which would be easy to fix. Also, one can
delegate to the CXF XMLBeans DataBinding which can be used by JAXWS
services with the help of the DataBinding jaxrs provider
(similarly for SDO); not sure if Aegis supports pretty-printing...
cheers, Sergey
> M.
> --
> I keep six honest serving-men (They taught me all I knew); Their names
are
> What and Why and When And How and Where and Who.
>
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless
specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the
information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this
This e-mail has been sent by one of the following wholly-owned subsidiaries of the BBC:
BBC Worldwide Limited, Registration Number: 1420028 England, Registered Address: BBC Media Centre, 201 Wood Lane, London, W12 7TQ
BBC World News Limited, Registration Number: 04514407 England, Registered Address: BBC Media Centre, 201 Wood Lane, London, W12 7TQ
BBC World Distribution Limited, Registration Number: 04514408, Registered Address: BBC Media Centre, 201 Wood Lane, London, W12 7TQ