With Groovy, it's easy to use JDOM.
All of JDOM, DOM4j, SAX, and DOM (and I think Stax) are available for Groovy.

Personally, I think that's the best way to work:
- making a groovy page (think of it as a piece of java code, the differences 
are tiny, but not empty)
- use velocity to parseGroovyFromPage (this parses only once!), pilot the 
objects in groovy that pilot the jdom objects

paul

Le 1 mars 2012 à 16:54, Mark Wallace a écrit :

> Is there a way in XWiki's velocity to process an XML document?  I want to 
> parse a SPARQL Query Results XML document [1] returned by a custom script 
> service.
> 
> Thanks!
> 
> [1] http://www.w3.org/TR/rdf-sparql-XMLres/
> 
> -- 
> Mark Wallace
> Principal Engineer, Semantic Applications
> Modus Operandi, Inc., FL, USA
> 
> 
> 
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to