small fixes

This commit is contained in:
2023-04-29 08:25:51 +02:00
parent e1bde27789
commit c3082c9442
8 changed files with 74 additions and 73 deletions

View File

@ -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) {