Skip to main content

DoxygenXmlParser.getAttributesNames() method

Retrieves the names of all attributes present on the specified XML element.

Signature

getAttributesNames(element: object): string[];

Parameters

Parameter

Type

Description

element

object

The XML element to inspect for attribute names

Returns

string[]

An array of strings containing the names of all attributes

Remarks

This method accesses the ':@' property of the XML element, which is the convention used by the XML parser for storing attributes, and returns the keys of this object as an array of attribute names. The method assumes the element has attributes and does not perform validation - use DoxygenXmlParser.hasAttributes() to check for attribute presence first.