[PHP] Re: XPath Query Exressions and Quote Characters

2005-03-16 Thread Jason Barnett
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

[PHP] Re: XPath Query Exressions and Quote Characters

2005-03-16 Thread C Drozdowski
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