Home

XmlBuilder

Used to programmatically build XML documents

Operations

New

Default constructor

New(name:String)
Parameters
NameTypeDescription
nameStringroot element name

Default constructor

New(name:String, version:String)
Parameters
NameTypeDescription
nameStringroot element name
versionStringXML version tag

Default constructor

New(name:String, version:String, encoding:String)
Parameters
NameTypeDescription
nameStringroot element name
versionStringXML version tag
encodingStringXML encoding type

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

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