XmlBuilder
Used to programmatically build XML documents
Operations
GetEncoding
Gets the XML encoding
method : public : GetEncoding() ~ StringReturn
| Type | Description |
|---|---|
| String | XML encoding |
GetRoot
Returns the root node of the XML document
method : public : GetRoot() ~ XmlElementReturn
| Type | Description |
|---|---|
| XmlElement | root node |
GetVersion
Gets the XML version
method : public : GetVersion() ~ StringReturn
| Type | Description |
|---|---|
| String | XML version |
New
Default constructor
New(name:String, version:String)Parameters
| Name | Type | Description |
|---|---|---|
| name | String | root element name |
| version | String | XML version tag |
New
Default constructor
New(name:String, version:String, encoding:String)Parameters
| Name | Type | Description |
|---|---|---|
| name | String | root element name |
| version | String | XML version tag |
| encoding | String | XML encoding type |
SetEncoding
Sets the XML encoding
method : public : SetEncoding(encoding:String) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| encoding | String | encoding version |
Return
| Type | Description |
|---|---|
| Nil | XML encoding |
SetVersion
Sets the XML version
method : public : SetVersion(version:String) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| version | String | version |
Return
| Type | Description |
|---|---|
| Nil | XML version |
ToString
Produces an XML string representation of the document
method : public : ToString() ~ StringReturn
| Type | Description |
|---|---|
| String | string representation of the document |