Skip to main content

DoxygenXmlParser.getInnerElementText() method

Retrieves the text content of a named child element.

Signature​

getInnerElementText(element: object, name: string): string;

Parameters​

Parameter

Type

Description

element

object

The XML element containing the child element

name

string

The name of the child element

Returns​

string

The text content of the child element

Exceptions​

If the child element does not exist or contains more than one element

Remarks​

This method accesses the specified child element and returns its text content. If the child element is missing, an error is thrown. If the child element is empty, an empty string is returned. If there is more than one child element, an error is thrown to indicate unexpected structure.


Generated via tsdoc2docusaurus 1.3.2 by API Extractor/Documenter 7.58.7.