[xwiki-devs] Processing XML from Velocity
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
Hi, You could look into the velocity xmltool : http://velocity.apache.org/tools/devel/javadoc/org/apache/velocity/tools/gen... It's not bundled with XWiki AFAIK, but should be easy to achieve. Jerome On Thu, Mar 1, 2012 at 4:54 PM, Mark Wallace <mwallace@modusoperandi.com> wrote:
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 devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
-- Jérôme Velociter Winesquare http://www.winesquare.net/
Yes, I had run across the XmlTool in my searches. I don't know how to make a new Velocity tool available in XWiki. Can anyone give a pointer on how to do this? Thanks, -Mark On 3/1/2012 11:02 AM, Jerome Velociter wrote:
Hi,
You could look into the velocity xmltool : http://velocity.apache.org/tools/devel/javadoc/org/apache/velocity/tools/gen...
It's not bundled with XWiki AFAIK, but should be easy to achieve.
Jerome
On Thu, Mar 1, 2012 at 4:54 PM, Mark Wallace<mwallace@modusoperandi.com> wrote:
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 devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
On Thu, Mar 1, 2012 at 5:13 PM, Mark Wallace <mwallace@modusoperandi.com> wrote:
Yes, I had run across the XmlTool in my searches. I don't know how to make a new Velocity tool available in XWiki. Can anyone give a pointer on how to do this?
You have a velocity.tools property in xwiki.properties file to add new tools.
Thanks, -Mark
On 3/1/2012 11:02 AM, Jerome Velociter wrote:
Hi,
You could look into the velocity xmltool :
http://velocity.apache.org/tools/devel/javadoc/org/apache/velocity/tools/gen...
It's not bundled with XWiki AFAIK, but should be easy to achieve.
Jerome
On Thu, Mar 1, 2012 at 4:54 PM, Mark Wallace<mwallace@modusoperandi.com> wrote:
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 devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
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 devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
participants (4)
-
Jerome Velociter -
Mark Wallace -
Paul Libbrecht -
Thomas Mortagne