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?
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");
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/