[jdom-interest] variable evaluation in XPATH expression

Prashanth.S suman291857 at yahoo.com
Wed Jan 21 19:10:42 PST 2004


Hi all,
Iam using jdom for xml parsing....so to search a particular element in a xml iam using XPATH and iam trying to construct XPATH expression dynamically....is it possible to use variables inside XPATH expression....like
String map="europe";
XPath servletPath = XPath.newInstance("/*/*/subcategory[@mappedname=map]");
 
Iam eagerly waiting for reply...
Thanks
Prashanth
 
 


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20040121/b4672f34/attachment.htm


More information about the jdom-interest mailing list