DoxygenXmlParser.getInnerText() method
Retrieves the text content of the XML element.
Signature
getInnerText(element: object): string;
Parameters
Parameter |
Type |
Description |
---|---|---|
element |
object |
The XML element to retrieve text from |
Returns
string
The text content of the element
Exceptions
If the element does not contain a valid text node
Remarks
This method accesses the '#text' property of the XML element and returns its value as a string. It asserts that the value is of type string, number, or boolean before converting it to a string. If the property is missing or the value is of an unexpected type, an error is thrown.