Read XML file and write to a php array/file -
possible duplicate:
read xml file , write php array/file
hi,
i need update country list of website , want automate process. country list can found here http://www.iso.org/iso/country_codes...code_lists.htm
i tried way – http://www.w3schools.com/php/php_xml_parser_expat.asp (php xml expat parser) however, didn't seem work confused 'get' data , print own array later use.
now want try using xml dom (http://www.php.net/manual/en/book.domxml.php ).
just want check everyone, if had simple xml file read, contained country code , country name follows:
<entry> <country_name>afghanistan</country_name> <code_element>af</code_element> </entry>
i want read file (dom method), , feed data separate file/array of mine accessed website. php xml functions use/recommend simple task?
any in regards appreciated.
simple + xml =
simplexml dom support too
Comments
Post a Comment