Search found 1 match

by nomolos9
Fri Jul 29, 2005 7:09 pm
Forum: General XML Questions
Topic: XPATH Java String / glob matching
Replies: 0
Views: 7741

XPATH Java String / glob matching

Hi, Two questions. For the following XML snippet: <slide> <item>running</item> <item>hi</item> <item>40</item> </slide> //item[.='hi'] Will return the item node with text hi. But, (using Java): String s = "hi"; //item[.=s] does not work. How do I get a Java string value in there? Also - re...