Try this XPath //subject[relation/@role='".$role."']/@id. You were applying the predicate on the id attribute and not on the subject ...
確定! 回上一頁