Instance Property

description

Returns a description of the receiver.

Declaration

var description: String { get }

Discussion

Use this method for debugging rather than for generating XML output. It could yield more information than xmlString and xmlString(options:).

See Also

Emitting Node Content

var xmlString: String

Returns the string representation of the receiver as it would appear in an XML document.

func xmlString(options: XMLNode.Options) -> String

Returns the string representation of the receiver as it would appear in an XML document, with one or more output options specified.

func canonicalXMLStringPreservingComments(Bool) -> String

Returns a string object encapsulating the receiver’s XML in canonical form.