#41974 [Opn->Bgs]: xpath query searchs only first attributes

From: Date: Thu, 12 Jul 2007 11:51:08 +0000
Subject: #41974 [Opn->Bgs]: xpath query searchs only first attributes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-114971@lists.php.net to get a copy of this message
ID: 41974 Updated by: rrichards@php.net Reported By: netdur at gmail dot com -Status: Open +Status: Bogus Bug Type: DOM XML related Operating System: Ubuntu PHP Version: 5.2.3 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Output is correct. read up on the conversion of nodesets to strings in the xpath specs Previous Comments: ------------------------------------------------------------------------ [2007-07-12 00:12:02] netdur at gmail dot com Description: ------------ let's say we have XML document has line that looks like this <elem attr="_str_"/> using xpath query "//*[contains (@*, 'str')]" will find that element, however if that XML line looks like this <elem id="123" attr="_str_"/> xpath will fail finding the element! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41974&edit=1

« previous php.bugs (#114971) next »