-
Notifications
You must be signed in to change notification settings - Fork 0
lib.xml.XMLElement
Peter edited this page Aug 23, 2024
·
6 revisions
Tip
The XMLElement
's children can be accessed with XMLElement[i]
where i
is the index of the child
Create a new XMLElement
Important
The constructor for XMLElement
is part of the xml library
-
name: string?
- (Optional) Name of the XML element
Variable | Description |
---|---|
: |
Signature | Return | Description |
---|---|---|
__init__(name?) |
nil |
PACKAGE Initialize this XML element |
addChild(child) |
nil |
Add a child to this XML element |
Queue:__init__(name: string): nil
PACKAGE
Initialize this XML element
-
name: string?
- (Optional) Element name
Queue:addChild(child: XMLElement): nil
Add a child to this XML element
Will set child's parent
element
-
child: XMLElement
- Child element to add