Members
XML_NODE_TYPES :Object
Enum for possible XML DOM node types.
Type:
- Object
- Source:
Methods
(static) firstChildElement(xmlParent, localNamenullable) → {Object}
Get the first child of an XML element that is also an element.
Can also filter for a specific tag name.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
xmlParent |
Object | The parent XML element. | ||
localName |
String |
<nullable> |
null | The required name of the child element. If null, no tag name restrictions apply. |
- Source:
Returns:
The first child node that is an XML element.
- Type
- Object
(static) forAllChildElements(xmlParent, func)
Execute a function for all element children of an XML element.
Parameters:
Name | Type | Description |
---|---|---|
xmlParent |
Object | The parent XML element. |
func |
function | The function to execute. |
- Source: