Skip to content

lib.xml.XMLElement

Peter edited this page Aug 23, 2024 · 6 revisions

Class: lib.xml.XMLElement

Tip

The XMLElement's children can be accessed with XMLElement[i] where i is the index of the child

Constructor: xml.XMLElement(name: string?)

Create a new XMLElement

Important

The constructor for XMLElement is part of the xml library

Parameters

  • name: string? - (Optional) Name of the XML element

Fields

Variable Description
:

Instance Functions

Signature Return Description
__init__(name?) nil PACKAGE Initialize this XML element
addChild(child) nil Add a child to this XML element

Detail

Functions

__init__

Queue:__init__(name: string): nil

PACKAGE

Initialize this XML element

Parameters

  • name: string? - (Optional) Element name

addChild

Queue:addChild(child: XMLElement): nil

Add a child to this XML element

Will set child's parent element

Parameters

  • child: XMLElement - Child element to add

Clone this wiki locally