Bug #50951 [Fbk->NoF]: SimpleXml xpath does not return proper xpath query
Edit report at https://bugs.php.net/bug.php?id=50951&edit=1
ID: 50951
Updated by: php-bugs@lists.php.net
Reported by: arashaga at gmail dot com
Summary: SimpleXml xpath does not return proper xpath query
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Scripting Engine problem
Operating System: xp
PHP Version: 5.3.1
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2010-04-25 20:07:43] felipe@php.net
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2010-02-21 01:00:01] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2010-02-13 21:50:52] jani@php.net
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2010-02-08 22:35:12] arashaga at gmail dot com
Actually instead of that whole "for and foreach" block we can use
var_dump($rest);
and it will return bool(false).
------------------------------------------------------------------------
[2010-02-08 21:59:54] arashaga at gmail dot com
<?php
/*please use the xml feed that I have provided as an example instead
of the ebay.xml*/
$xml = simplexml_load_file('ebay.xml');
$xml-
>registerXpathNamespace('ebay','urn:ebay:apis:eBLBaseComponents');
$resp = $xml-
>xpath("//ebay:CurrentPrice[.=1.98]/parent::Item/Storefront/StoreName"
);
for($i=0;$i < count($resp)/2; $i++ )
{
foreach($resp[$i] as $key => $value)
{
//echo "['".$key."']=".$value."<br>";
echo "[$key]= $value<br>";
}
}
?>
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=50951
--
Edit this bug report at https://bugs.php.net/bug.php?id=50951&edit=1
Thread (7 messages)