You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@abdera.apache.org by Dan Diephouse <da...@mulesource.com> on 2007/09/10 23:11:38 UTC
pretty print response request/response
Another question today: Is there an easy way to pretty print the xml
request/response with proper xml formatting? I don't see any
capabilities to do this in Abdera or Axiom which seems odd. I'm guessing
I'm overlooking it.
- Dan
--
Dan Diephouse
MuleSource
http://mulesource.com | http://netzooid.com/blog
Re: pretty print response request/response
Posted by James M Snell <ja...@gmail.com>.
FYI... http://cwiki.apache.org/ABDERA/custom-writers.html
- James
Dan Diephouse wrote:
> I just wanted it for debugging purposes anyway. Thanks a lot for the
> quick response!
>
> James M Snell wrote:
>> There is a Pretty Print Writer implementation available but it's
>> intended more for diagnostic purposes than for any real use. It
>> probably would not take much to make it suitable for production use.
>>
>> abdera.getWriterFactory()
>> .getWriter("prettyxml")
>> .writeTo(feed, System.out);
>>
>> - James
>>
>> Dan Diephouse wrote:
>>
>>> Another question today: Is there an easy way to pretty print the xml
>>> request/response with proper xml formatting? I don't see any
>>> capabilities to do this in Abdera or Axiom which seems odd. I'm guessing
>>> I'm overlooking it.
>>>
>>> - Dan
>>>
>>>
>
>
Re: pretty print response request/response
Posted by Dan Diephouse <da...@mulesource.com>.
I just wanted it for debugging purposes anyway. Thanks a lot for the
quick response!
James M Snell wrote:
> There is a Pretty Print Writer implementation available but it's
> intended more for diagnostic purposes than for any real use. It
> probably would not take much to make it suitable for production use.
>
> abdera.getWriterFactory()
> .getWriter("prettyxml")
> .writeTo(feed, System.out);
>
> - James
>
> Dan Diephouse wrote:
>
>> Another question today: Is there an easy way to pretty print the xml
>> request/response with proper xml formatting? I don't see any
>> capabilities to do this in Abdera or Axiom which seems odd. I'm guessing
>> I'm overlooking it.
>>
>> - Dan
>>
>>
--
Dan Diephouse
MuleSource
http://mulesource.com | http://netzooid.com/blog
Re: pretty print response request/response
Posted by James M Snell <ja...@gmail.com>.
There is a Pretty Print Writer implementation available but it's
intended more for diagnostic purposes than for any real use. It
probably would not take much to make it suitable for production use.
abdera.getWriterFactory()
.getWriter("prettyxml")
.writeTo(feed, System.out);
- James
Dan Diephouse wrote:
> Another question today: Is there an easy way to pretty print the xml
> request/response with proper xml formatting? I don't see any
> capabilities to do this in Abdera or Axiom which seems odd. I'm guessing
> I'm overlooking it.
>
> - Dan
>