| MHenke on May 12, 2006 at 1:18:22 AM (# 1) Well, that's not well-formed XML, not even as document fragment.
> i found out "contains" method that can do this but could not use it in a xpath expression. You can. Assumed you handle documents like
<?xml version="1.0" encoding="UTF-8"?>
<books> <book name="try1" sID="tr01 tr02 tr03" /> <book name="try2" sID="tr02 tr03" /> <book name="try3" sID="tr01 tr03" /> </books>
You could try an XPath like
//books/book[contains(@sID, 'tr01') and contains(@sID, 'tr03')]
|