|
Whitebeam Template Reference Documentation
|
rb.XmlParser Object Description (XmlParser Template)
This class represents an XML parser. To parse XML data you create an instance of this class
and then use the method on the resulting object to build and manipulate a DOM like model
of some XML data.
Methods
Object Properties
Name | Type/Value | Range/Length | Description | removeComments | bool | | Optional, default = true
This is a control flag used to modify the behaviour of the parser when it builds the
internal XML representation of a document. If this flag is set (true) the parser will
filter all XML comments from the DOM.
| removeWhitespace | bool | | Optional, default = true
This is a control flag used to modify the behaviour of the parser when it builds the
internal XML representation of a document. If this flag is set (true) the parser will
remove whitespace between adjacent tags (or the end on one tag and the start of the next).
Whitespace is *only* removed *if* there is only whitespace separating the tags.
| removeDecls | bool | | Optional, default = true
This is a control flag used to modify the behaviour of the parser when it builds the
internal XML representation of a document. If this flag is set (true) the parser will
filter all XML declarations from the DOM. Declarations are of the form:
<!Xml Declaration>
| removeProcInst | bool | | Optional, default = true
This is a control flag used to modify the behaviour of the parser when it builds the
internal XML representation of a document. If this flag is set (true) the parser will
filter all XML comments from the DOM.
| root | struct XmlTag | see definition | Required.
This is the 'root' of the XML tree. The root is the 'virtual' XML tag element that
contains all the top level elements that exist within the document being processed.
| errors | array of strings | | Required.
This property is created after calling
XmlParser.build()if constructing the tree generated any parsing errors.
|
|
|
(loadtime : 30ms) |