Function: serializeXml()
ts
function serializeXml(element, options?): string;Defined in: netconf/src/xml/serialize.ts:64
Serialise an element tree to a string.
Namespace declarations are generated as needed from each element's resolved namespace, so the output is correct whatever prefixes the input used. Text and attribute values are always escaped; the output can never contain the RFC 6242 end-of-message delimiter.
Parameters
element
XmlElement
options?
SerializeOptions = {}
Returns
string
Throws
XmlError for invalid names or characters XML cannot represent.