我可以解析標準的XML文件,但我不能這個XML文件。PHP - 如何解析XML
我該如何解析這個XML。 我想列出'number_name'。
謝謝。
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<numbers>
<number no_id="4" number_name="car" />
<number no_id="6" number_name="bike" />
<number no_id="11" number_name="train" />
<number no_id="32" number_name="plane" />
</numbers>
檢查此鏈接,這將幫助你 HTTPS ://www.w3schools.com/php/php_xml_simplexml_read.asp –
看看這個:https://stackoverflow.com/questions/250679/best-way-to-parse-rss-atom-feeds-with-php – yoeunes
你可能還想看到這個鏈接,[SimpleXMLElement :: attributes](http://php.net/manual/en/simplexmlelem ent.attributes.php) – 2017-08-11 01:17:53