small fixes
This commit is contained in:
@ -5,10 +5,12 @@ $__DIR__ = __DIR__;
|
||||
|
||||
$conf = yaml_parse_file($file);
|
||||
|
||||
$xml = new DomDocument("1.0");
|
||||
$xml = new DomDocument("1.0", "utf-8");
|
||||
$xml->preserveWhiteSpace = false;
|
||||
$xml->formatOutput = true;
|
||||
$xml->appendChild($xml->createProcessingInstruction("xml-stylesheet", "href='../results.xsl' type='text/xsl'"));
|
||||
$root = $xml->appendChild($xml->createElement("lanScan"));
|
||||
$root->setAttribute("scanpath", "scans/$site.xml");
|
||||
$root->setAttribute("scanpath", "./scans/$site.xml");
|
||||
|
||||
function appendArray($document, $node, $array) {
|
||||
foreach ($array as $key => $value) {
|
||||
|
Reference in New Issue
Block a user