DoxygenXmlParser.hasAttributes() method
Determines whether the specified XML element has any attributes.
Signature
hasAttributes(element: object): boolean;
Parameters
Parameter |
Type |
Description |
---|---|---|
element |
object |
The XML element to inspect for attributes |
Returns
boolean
True if the element has attributes; otherwise, false
Remarks
This method checks for the presence of the ':@' property on the XML element, which is the convention used by the XML parser for storing attributes. If this property exists, the element has attributes; if not, the element has no attributes. This is a prerequisite check before calling DoxygenXmlParser.getAttributesNames() or other attribute-related methods.