changeset 2629:6324f500beb3

Use simplexml_load_string
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Thu, 19 Jan 2017 11:27:29 +0000
parents 9c7501dac617
children 3986de98f04a
files php/requestKey.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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