Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
xml php load attributes?
I have been haveing some problems, and i cant find the right code for this, been working on it for hours now driveing me crazy
but heres the xml file
http://www.google.com/ig/api?stock=GOOG
all i need to do, the "simple thing" i need to do is just get a string of a data attribute
doing this in php
just so i can pick volume, and is echos that number back for example
2 Answers
- 8 years agoFavorite Answer
Do something like this.
<?php
$xml = simplexml_load_file("test.xml");
foreach($xml->body[0]->attributes() as $a => $b)
{
echo $a,'="',$b,"\"</br>";
}
?>
- ambroziakLv 45 years ago
look interior the codes for something that looks like this: <meta type="keywords" fee="..."> From the blunders I see which you have no longer closed the Meta tag so once you come across the code that looks like that above then type this next to it: /meta This closes the Meta and can artwork.