v2025.6.2
All Bundles

XmlBuilder

Used to programmatically build XML documents

Operations

GetEncoding

Gets the XML encoding

method : public : GetEncoding() ~ String

Return

TypeDescription
StringXML encoding

GetRoot

Returns the root node of the XML document

method : public : GetRoot() ~ XmlElement

Return

TypeDescription
XmlElementroot node

GetVersion

Gets the XML version

method : public : GetVersion() ~ String

Return

TypeDescription
StringXML version

New

Default constructor

New(name:String)

Parameters

NameTypeDescription
nameStringroot element name

New

Default constructor

New(name:String, version:String)

Parameters

NameTypeDescription
nameStringroot element name
versionStringXML version tag

New

Default constructor

New(name:String, version:String, encoding:String)

Parameters

NameTypeDescription
nameStringroot element name
versionStringXML version tag
encodingStringXML encoding type

SetEncoding

Sets the XML encoding

method : public : SetEncoding(encoding:String) ~ Nil

Parameters

NameTypeDescription
encodingStringencoding version

Return

TypeDescription
NilXML encoding

SetVersion

Sets the XML version

method : public : SetVersion(version:String) ~ Nil

Parameters

NameTypeDescription
versionStringversion

Return

TypeDescription
NilXML version

ToString

Produces an XML string representation of the document

method : public : ToString() ~ String

Return

TypeDescription
Stringstring representation of the document