Hi, I trying to use the JDOMDemo sample code that comes with Jaxen to do some testing of XPath expressions.
I don't get any results when I try the following command: //eee[@fruit=apple2] However the following command works fine: //ccc[@temp='0'] Any idea why this is the case? The XML file I'm using is given below. Also, how should I write the query //eee if the XML has a namespace defined such as <bbb xmlns="http://localhost">? Thanks for the help! Supriyo <?xml version="1.0" encoding="UTF-8"?> <aaa> <bbb> <ccc temp="0"> <ddd fruit="apple1"> <eee fruit="apple2"> <fff fruit="apple3" /> </eee> </ddd> <TTT> <UUU value="dog" /> <VVV name="cat" /> <WWW name="carrot" /> <XXX location="pigeon" /> </TTT> </ccc> </bbb> </aaa> __________________________________________________ Do You Yahoo!? Win a DV camera, join our "30 Seconds of Fame" contest http://sg.movies.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Jaxen-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jaxen-interest