Home

XmlParser

Parses an XML document

Operations

New

Default constructor

New(string:String)
Parameters
NameTypeDescription
stringStringXML to parse

Default constructor

New(buffer:Char[])
Parameters
NameTypeDescription
bufferChar[]XML to parse

FindElements

Find an XML element

method : public : FindElements(path:String) ~ Vector
Parameters
NameTypeDescription
pathStringsearch string

Return
TypeDescription
Vectormatching XML elements

GetEncoding

Gets the XML encoding

method : public : GetEncoding() ~ String
Return
TypeDescription
StringXML encoding

GetError

Get the current parsing error

method : public : GetError() ~ String
Return
TypeDescription
Stringcurrent parsing error

GetRoot

Gets the root XML element

method : public : GetRoot() ~ XmlElement
Return
TypeDescription
XmlElementroot XML element

GetVersion

Gets XML version

method : public : GetVersion() ~ String
Return
TypeDescription
StringXML version

Parse

Parses the XML document

method : public : Parse() ~ Bool
Return
TypeDescription
Booltrue if parsed, false otherwise

ToString

Produces an XML string representation of the document

method : public : ToString() ~ String
Return
TypeDescription
Stringstring representation of the document