Hi,
On Wed, Mar 31, 2010 at 6:06 PM, Mike Davis <sk00ter21(a)hotmail.com> wrote:
Message: 6
Date: Mon, 29 Mar 2010 17:37:30 +0200
From: Vincent Massol <vincent(a)massol.net>
Subject: Re: [xwiki-users] XML parser for displaying on pages
To: XWiki Users <users(a)xwiki.org>
Message-ID: <FF52ADF2-7028-4F86-B699-6455D9316EB8(a)massol.net>
Content-Type: text/plain; charset=us-ascii
Hi,
On Mar 29, 2010, at 5:27 PM, Mike Davis wrote:
>
> I want to parse XML attachments to a page and display the data in a
table or
list on the page. Does this functionality exist? Just checking
before I write my own code.
So you have attachments which are XML files and you want to parse them
and display
their content in a wiki table ?
If so, I'd suggest you use the {{groovy}} macro and use the groovy xml
slurper
to do the work. You should be able to write this in less than 10
lines :)
Thanks, got that up and running in only a few minutes! Now I'd like a way
to have the user click on one level of the xml hierarchy I display and have
it expand to show the children of that section (I have the hierarchy
iteration code, just not the "gui" code). Something graphically like a
macro error (the one that says "Failed to execute macro: groovy") and then
you click to expand and view the content.
Thanks!
-Mike
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:…
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Guillaume Lerouge
Product Manager - XWiki SAS
Skype: wikibc
Twitter: glerouge