All Bundles
XmlParser
Parses an XML document
Operations
New
Default constructor
New(string:String)
Parameters
Name | Type | Description |
---|
string | String | XML to parse |
Default constructor
New(buffer:Char[])
Parameters
Name | Type | Description |
---|
buffer | Char[] | XML to parse |
FindElements
Finds matching XML elements using xpath like syntax. Supports 'first()', 'last()' and '[cdata]' functions.
method : public : FindElements(path:String) ~ Vector<XmlElement>
Parameters
Name | Type | Description |
---|
path | String | search string |
Return
GetEncoding
Gets the XML encoding
method : public : GetEncoding() ~ String
Return
Type | Description |
---|
String | XML encoding |
GetError
Get the current parsing error
method : public : GetError() ~ String
Return
Type | Description |
---|
String | current parsing error |
GetRoot
Gets the root XML element
method : public : GetRoot() ~ XmlElement
Return
GetVersion
Gets XML version
method : public : GetVersion() ~ String
Return
Type | Description |
---|
String | XML version |
Parse
Parses the XML document
method : public : Parse() ~ Bool
Return
Type | Description |
---|
Bool | true if parsed, false otherwise |
TextToElement
Parses an XmlElement text
function : TextToElement(text:String) ~ XmlElement
Parameters
Name | Type | Description |
---|
text | String | JSON text |
Return
ToString
Produces an XML string representation of the document
method : public : ToString() ~ String
Return
Type | Description |
---|
String | string representation of the document |