Hi, On Wed, Mar 31, 2010 at 6:06 PM, Mike Davis <sk00te...@hotmail.com> wrote:
> > > Message: 6 > > Date: Mon, 29 Mar 2010 17:37:30 +0200 > > From: Vincent Massol <vinc...@massol.net> > > Subject: Re: [xwiki-users] XML parser for displaying on pages > > To: XWiki Users <users@xwiki.org> > > Message-ID: <ff52adf2-7028-4f86-b699-6455d9316...@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 :) > > > > http://groovy.codehaus.org/Reading+XML+using+Groovy%27s+XmlSlurper > > > > Thanks > > -Vincent > > 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. > http://code.xwiki.org/xwiki/bin/view/Snippets/ShowHideDIVSnippet Guillaume > 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:WL:en-US:WM_HMP:032010_2 > _______________________________________________ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users