ID: 41974 Updated by: [EMAIL PROTECTED] 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