public toXml ( boolean $returnAsDom = false, array &$known = null ) : DOMDocument | string | ||
$returnAsDom | boolean | optional Should it return DOMDocument object or plain xml string. If it's true it will return DOMDocument. |
$known | array | optional It's for internal usage |
return | DOMDocument | string | Returns object converted into either XML string or DOMDocument, depends on returnAsDom option. |