SV: [jdom-interest] Can't get values using xpath

Per Norrman pernorrman at telia.com
Mon Oct 27 15:15:28 PST 2003


Hi,

a third approach:

Use this XPath expression

       "/x:APIInterface/x:StoreSiteResponse/x:ReturnCode

The construct the XPath object as:
        XPath xp = XPath.newInstance(xpath);
        xp.addNamespace(Namespace.getNamespace("x", "http://......."));
        Element e = (Element)xp.selectSingleNode(requestDoc);

/pmn




More information about the jdom-interest mailing list