C Drozdowski wrote:
...
$query = '//book/chapter' . '[EMAIL PROTECTED]:id=' . $id . ']';
First of all check the XPath documentation:
http://www.w3.org/TR/xpath
http://www.w3.org/TR/xpath#path-abbrev
AFAIK your expression above is the way to build this query. Give us a
link to the XML doc if
It's just a coincidence that I used xml:id as part of my query
expression. If I use following code method to build my expression:
$query = '//book/chapter[section=' . $section . ']';
or say
$query = '//book/[EMAIL PROTECTED]' . $title . ']';
I get an Invalid Predicate... error when either the
2 matches
Mail list logo