Read xml data in php
PHP: Hypertext Preprocessor programming language, a popular dynamic web page scripting language, features the built-in SimpleXML extension, which simplifies reading and using XML in your PHP scripts. Read an RSS feed, XML office documents, or your own custom XML document. Here we use SimpleXML library, which is not only the best for converting string to XML object but is also built into PHP core so there is no need to install it. Once you have the URL of the XML feed that you are going to use, you need to have PHP load the contents of the feed into a string variable. Using file_get_contents, you could fetch the XML file like so: How to Read an XML File With PHP [php] <?php $xmlStr = file_get_contents('http://www.youdomain.com/feeds/news.xml'); $xmlObj = simplexml_load_string($xmlStr); $arrXml =…