Hi Sylvain,
On 6 Mar 2015 at 16:12:42, Sylvain MARIE
(sylvain.ma...@vtreem.com(mailto:sylvain.ma...@vtreem.com)) wrote:
>
> Hello,
>
> (warning n00b question ahead)
> I would like to fetch external data, in xml (say for example
> https://raw.githubusercontent.com/xwiki/xwiki-commons/master/pom.xml) and use
> it in a XWiki page : filter tokens, display node contents, etc. At this stage
> I don’t envision populating a custom class.
> Would you guys have pointers/examples of such xwiki page?
First you could use getURLContent(), see:
http://extensions.xwiki.org/xwiki/bin/view/Extension/External+Pretty+Code
Now if you want to parse the XML then you should use an API that does that. If
you can use Groovy then you can easily do the same as is done here for example:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Nexus+Integration
Hope it helps,
-Vincent
> Thank you in advance!
> Sylvain
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users