Mercurial > hg > webaudioevaluationtool
comparison php/requestKey.php @ 2752:a99c5f008c2d
Minor
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Tue, 25 Apr 2017 12:03:25 +0100 |
parents | 6a36f5777af9 |
children | 1ba5ac9d88e7 |
comparison
equal
deleted
inserted
replaced
2751:6a36f5777af9 | 2752:a99c5f008c2d |
---|---|
56 // TODO: | 56 // TODO: |
57 // Generate the XML Base file and save it | 57 // Generate the XML Base file and save it |
58 $doc_struct = new DOMDocument; | 58 $doc_struct = new DOMDocument; |
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 key=".$key."/>"); | 61 $doc_struct->loadXML("<waetresult key=\"".$key."\"/>"); |
62 // Add the root | 62 // Add the root |
63 if (file_exists($testURL)) { | 63 if (file_exists($testURL)) { |
64 $test_proto_doc = new DOMDocument; | 64 $test_proto_doc = new DOMDocument; |
65 $test_proto_doc->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 = $test_proto_doc->documentElement; |