I can build a node set and select nodes with the following syntax and included xml file, but how do I select based on an element's string value? I am trying to learn the w3c recommendations but it is not easily digested. I am using Jaxen 1.0. Also, there is a preceding / in front of the following syntax but my email app enjoys doing something I don't want it to do ..
 
/card (builds a node set of 2)
/card[year=1973] (builds a nodeset of 1)
/card[name="Hank Aaron"] (builds a nodeset of 0, why, what is the correct syntax?, is it possible to search based on a substring of this, for example, "Aaron"?)
<?xml version="1.0"?>
<cards>
    <card>
        <name> Hank Aaron </name>
        <year> 1973 </position>
    </card>
    <card>
        <name> Brooks Robinson </name>
        <year> 1980 </position>
    </card>
</cards>

Reply via email to