Caplin Trader 5.1.0

Class: module:ct-core/XmlSerializer

module:ct-core/XmlSerializer()

new module:ct-core/XmlSerializer()

This is a static utility class and should not be constructed.

Methods

(static) serialize(oXml) → {String}

Serializes some XML to a string.

Makes use of XMLSerializer where it's available. If it is unable to serialize the passed XML, it throws an exception.

Parameters:
Name Type Description
oXml Object

the XML to serialize to a string.

Returns:

a String representation of the provided XML.

Type
String