Re: [PHP] Problem with XPath query

2009-12-14 Thread Jim Lucas
Lester Caine wrote: > > I often find that it's quicker to ask - because invariably the answer > presents itself the second you hit send ;) > Isn't that the truth! Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with XPath query

2009-12-14 Thread Lester Caine
Christoph Boget wrote: You are missing a quote after widgetType: Yeah, I realized that about 2 minutes after I sent the message. Man, I'm dumb. :p I was banging my head against the wall for a while because of that. I guess when you bring your stupidity public, you'll find the solution yourse

Re: [PHP] Problem with XPath query

2009-12-14 Thread Christoph Boget
> You are missing a quote after widgetType: Yeah, I realized that about 2 minutes after I sent the message. Man, I'm dumb. :p I was banging my head against the wall for a while because of that. I guess when you bring your stupidity public, you'll find the solution yourself that much quicker. ;)

Re: [PHP] Problem with XPath query

2009-12-14 Thread Jonathan Tapicer
Hi, You are missing a quote after widgetType: [...@alias="widgetType and @value="system"] should be [...@alias="widgetType" and @value="system"] Regards, Jonathan On Mon, Dec 14, 2009 at 1:52 PM, Christoph Boget wrote: > Given the following XML: > > >   >     >       >     >   > > > I'm u

[PHP] Problem with XPath query

2009-12-14 Thread Christoph Boget
Given the following XML: 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 pa