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

Abhijeet Sarwate asarwate at elm.mt.att.com
Mon Oct 27 15:19:27 PST 2003


Thanks to both of you, but I can't modify the xml received

Per Norrman wrote:

>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
>
>
>  
>

-- 

Abhijeet Sarwate
DBOR
AT & T Middletown
732-420-2804

-----------
If you Don’t Ask, you Don’t Get, But if you Do, you Do !





More information about the jdom-interest mailing list