And an other way again will be to specify specify content type. Personally, with XE 2.6, I return an xml document with view action, xpage=plain and $response.setContentType('application/xml')
Arnaud. 2010/12/15 Thomas Mortagne <thomas.morta...@xwiki.com>: > Another way is to use "get" action instead of "view". > > On Wed, Dec 15, 2010 at 14:01, Vincent Massol <vinc...@massol.net> wrote: >> Hi Tim, >> >> try: >> xpage=plain&outputSyntax=plain >> >> Thanks >> -Vincent >> >> On Dec 15, 2010, at 1:27 PM, Tim Jones wrote: >> >>> I would like to return pure JSON from a page with a macro, to be called >>> externally as a web service. >>> >>> When I append xpage=plain to the URL of the page to omit the UI content, >>> the output is still enclosed within <p> </p>. >>> >>> Is there any way to get the plain text content without an enclosing >>> paragraph tag? >>> >>> Regards, >>> >>> Tim >> >> _______________________________________________ >> users mailing list >> users@xwiki.org >> http://lists.xwiki.org/mailman/listinfo/users >> > > > > -- > Thomas Mortagne > _______________________________________________ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users