# HG changeset patch # User Nicholas Jillings # Date 1484825249 0 # Node ID 6324f500beb38666ae3c2e575c2f9b609c9e8910 # Parent 9c7501dac6170998b15d21ffffcf8c0ab153ddb8 Use simplexml_load_string diff -r 9c7501dac617 -r 6324f500beb3 php/requestKey.php --- a/php/requestKey.php Thu Jan 19 11:25:11 2017 +0000 +++ b/php/requestKey.php Thu Jan 19 11:27:29 2017 +0000 @@ -59,7 +59,7 @@ $doc_struct->addAttribute("key",$key); // Add the root if (file_exists($testURL)) { - $test_proto = new SimpleXMLElement(file_get_contents($testURL, FILE_TEXT)); + $test_proto = simplexml_load_string(file_get_contents($testURL, FILE_TEXT)); $doc_struct->addChild($test_proto); } // Add start time