My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Links
Works relatively well, although not much support for namespaces yet and most testcases are not implemented... Help needed! Important, NO preceeding axis is implemented (has to be reprogrammed to replace the missing ListIterator).

To use the package import the jar, and add <inherits name='org.gwt.OrgGwt'/> to your gwt.xml file.

Can be used like that:

String xmlString = '<a><b></b><b a='x'>success!</b></a>';

    Document doc = XMLParser.parse(xmlString);

    try {
     BaseXPath xp = new GWTXPath('//b[@a='x']/text()');
     List nodeList = xp.selectNodes(doc);
     Window.alert(((Text) nodeList.get(0)).getData());
    } catch (JaxenException e) {
     e.printStackTrace();
    }










Powered by Google Project Hosting