Google Web Toolkit (GWT) + XPath

I need to evaluate an XPath request in GWT. I do not have a server side, so I have to evaluate them in my GWT client application.

What is the best XPath library for GWT?

+6
xml xpath gwt
source share
2 answers

I found totoe ( http://code.google.com/p/totoe/ ), a GWT library based on Sarissa (thanks Diogo!), It works like a charm!

For example:

String xml = "..."; Document document = new XmlParser().parse(xml, "xmlns:acme=\"http://www.acme.org\""); Element root = document.getRoot(); List<Comment> comments = document.findByType(NodeType.COMMENT); List<Node> products = document.selectNodes("//acme:products"); 
+3
source share

I do not know if this is better, or if this is what you are looking for, but a quick search: http://dev.abiss.gr/sarissa/

0
source share

All Articles