This commit is contained in:
2018-10-16 12:24:10 -04:00
parent 479c34ca5d
commit fc22e6875e
2 changed files with 17 additions and 11 deletions

View File

@ -103,6 +103,10 @@ class Array2XML {
//return from recursion, as a note with cdata cannot have child nodes.
return $node;
}
elseif(isset($arr['@comment']) && is_string($arr['@comment'])) {
$node->appendChild($xml->createComment(self::bool2str($arr['@comment'])));
unset($arr['@comment']);
}
}
//create subnodes using recursion