Skip to main content

DoxygenXmlParser.hasInnerElement() method

Determines whether the specified inner element exists on the given XML element.

Signature

hasInnerElement(element: object, name: string): boolean;

Parameters

Parameter

Type

Description

element

object

The XML element to inspect

name

string

The name of the inner element to check for

Returns

boolean

True if the inner element exists; otherwise, false

Remarks

This method checks for the presence of a named property on the XML element. For text nodes ('#text'), it verifies the value is a string, number, or boolean. For other elements, it confirms the property is an array, as per the XML parser's convention.