Skip to main content

DoxygenXmlParser.getInnerElements() method

Retrieves an array of named child elements from the given XML element.

Signature

getInnerElements<T = XmlElement[]>(element: object, name: string): T;

Parameters

Parameter

Type

Description

element

object

The XML element containing the child elements

name

string

The name of the child elements to retrieve

Returns

T

The array of child elements

Exceptions

If the child elements do not exist

Remarks

This method accesses the specified property on the XML element and returns it as an array of child elements. If the property is undefined, an error is thrown indicating the absence of the expected child element.