Skip to main content

DoxygenXmlParser.hasInnerText() method

Determines whether the XML element contains a text node.

Signature

hasInnerText(element: object): boolean;

Parameters

Parameter

Type

Description

element

object

The XML element to inspect

Returns

boolean

True if the element contains a text node; otherwise, false

Remarks

This method checks for the presence of a '#text' property on the XML element, and verifies that its value is a string, number, or boolean.