Mercurial > hg > webaudioevaluationtool
comparison php/requestKey.php @ 2631:a5ec4089d990
Get the root node from the test prototype
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Thu, 19 Jan 2017 12:11:20 +0000 |
parents | 3986de98f04a |
children | aa8d428fbb43 |
comparison
equal
deleted
inserted
replaced
2630:3986de98f04a | 2631:a5ec4089d990 |
---|---|
59 $doc_struct->preserveWhiteSpace = false; | 59 $doc_struct->preserveWhiteSpace = false; |
60 $doc_struct->formatOutput = true; | 60 $doc_struct->formatOutput = true; |
61 $doc_struct->loadXML("<waetresult/>"); | 61 $doc_struct->loadXML("<waetresult/>"); |
62 // Add the root | 62 // Add the root |
63 if (file_exists($testURL)) { | 63 if (file_exists($testURL)) { |
64 $test_proto = new DOMDocument; | 64 $test_proto_doc = new DOMDocument; |
65 $test_proto->loadXML(file_get_contents($testURL, FILE_TEXT)); | 65 $test_proto_doc->loadXML(file_get_contents($testURL, FILE_TEXT)); |
66 $test_proto = $test_proto_doc->documentElement; | |
66 $test_proto = $doc_struct->importNode($test_proto, true); | 67 $test_proto = $doc_struct->importNode($test_proto, true); |
67 $doc_struct->documentElement->appendChild($test_proto); | 68 $doc_struct->documentElement->appendChild($test_proto); |
68 } | 69 } |
69 // Add start time | 70 // Add start time |
70 // Add IP Address information | 71 // Add IP Address information |