Model Railroad System
2.2.1
|
Class to hold an XML tree. More...
Public Member Functions | |
ParseXML (name, xml,...) | |
The constructor parses the XML string and stores it as a child of the rootnode component. More... | |
displayTree (fp="stdout") | |
Display the XML tree. More... | |
Static Public Member Functions | |
static | validate (object) |
Validation typemethod. More... | |
Private Member Functions | |
_elementstart (tag, attrlist,...) | |
Callback called at the start of of XML element. More... | |
_elementend (tag,...) | |
Callback called at the end of an XML element. More... | |
_characterdata (data) | |
Callback called with the text enclosed by an element. More... | |
Private Attributes | |
rootnode | |
The (dummy) root node. More... | |
nodeStack | |
Temp variable used during parsing. More... | |
Class to hold an XML tree.
This class parses an XML string and stores the result as a DOM Element tree.
name | Generally %%AUTO%% is passed. |
xml | The XML string. |
_ | Options. None at present. |
ParseXML::ParseXML | ( | name | , |
xml | , | ||
... | |||
) |
The constructor parses the XML string and stores it as a child of the rootnode component.
xml | The XML string. |
_ | Options. None at present. |
|
private |
Callback called with the text enclosed by an element.
data | The text enclosed by an element. puts stderr "*** $self _characterdata: nodeStack = $nodeStack" |
|
private |
Callback called at the end of an XML element.
tag | The element's tag. |
_ | The element's options. |
|
private |
Callback called at the start of of XML element.
tag | The element's tag. |
attrlist | The element's attribute list. |
_ | The element's options. |
ParseXML::displayTree | ( | fp | = "stdout" | ) |
Display the XML tree.
fp | The channel to write the display to. |
|
static |
Validation typemethod.
Raises an error if its argument is not a ParseXML object.
object | The object to typecheck. |
|
private |
Temp variable used during parsing.
|
private |
The (dummy) root node.