Code has been added to clipboard!
Reading XML Data from Variables
 Example    
 <?php
  $xml_data = "<?xml version='1.0' encoding='UTF-8'?>  
    <note>  
    <to>You</to>  
    <from>Me</from>  
    <heading>The Game</heading>  
    <body>You lost it.</body>  
    </note>";  
  $xml = simplexml_load_string($xml_data) or die('Failed to create object');
  print_r($xml);  
?> 
                