after reading jquery xml select I wanted to do something similar with this rdf/xml:
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="http://someURI/999">
<dc:relation rdf:resource="http://www.someURI/888" />
</rdf:Description>
<rdf:Description rdf:about="http://www.someURI/001">
<dc:relation rdf:resource="http://www.someURI/987/777"/>
</rdf:Description>
</rdf:RDF>
I want to select the node with the attribute "rdf:about" ending with 001. I tried:
var node = $(xml).find("rdf:Description[rdf:about$=001]");
But it wont work. It returns the whole thing document. Any ideas?
Edit: Corrected spelling error. Doesn't change the problem, though.