Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7977 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16762 invoked by uid 1010); 18 Feb 2004 22:44:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 16725 invoked from network); 18 Feb 2004 22:44:02 -0000 Received: from unknown (HELO phoebe.host4u.net) (209.150.128.26) by pb1.pair.com with SMTP; 18 Feb 2004 22:44:02 -0000 Received: from ctdprimary (dsta-aa203.pivot.net [66.186.171.203]) by phoebe.host4u.net (8.11.6/8.11.6) with SMTP id i1IMhwJ25107; Wed, 18 Feb 2004 16:43:58 -0600 Message-ID: <05d001c3f670$fc7434b0$f7dea8c0@cyberware.local> To: "Banyai Zsolt" , References: <1077142147.2257.24.camel@bazso.kiro.z> Date: Wed, 18 Feb 2004 17:46:02 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: [PHP-DEV] domxpath->query: bug or not? From: rrichards@ctindustries.net ("Rob Richards") From: Banyai Zsolt > If I know well, the domxpath::query always returns with DOMNodeList. But > if i write an expression like this: //node1/@attribute and i haven't > got node1 node in the XML, the query return with false (boolean). But if > i write an expression like this: //node1/@attr when i have node1 node > but i haven't got attr attribute on that, the query return with an empty > DOMNodeList. > > If it's not a bug, please inform me about the details. Thanks, fixed now. left over code from pre-domnodelist stuff. will always return domnodelist now unless there is an error Rob