parse string to xml php code example Example: php parse xml $movies = new SimpleXMLElement($xmlstr); echo $movies->movie[0]->plot;