Given the following XML:

    <DisplayRef alias="Widget">
      <parameter alias="widgetType" type="variable" value="system"/>

I'm using the following query:

$oXPath->query( '//DisplayRef/paramet...@alias="widgetType and
@value="system"]' );

and I'm getting the following error:

Warning: DOMXPath::query() [function.DOMXPath-query]: Invalid predicate

If I remove this part of the query

[...@alias="widgetType and @value="system"]

the error goes away.

As far as I can tell from googling around, the query is valid.  If
that's the case, I don't understand what's causing the error.
Could someone explain to me what I'm doing wrong?


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to