DoxygenXmlParser class
The DoxygenXmlParser class is responsible for parsing Doxygen-generated XML files and constructing the internal data model.
Signature
export declare class DoxygenXmlParser
Remarks
This class initialises the XML parser with options that preserve the order and structure of the original XML content, ensuring accurate conversion for documentation purposes. It maintains a counter for the number of files parsed and stores the resulting data model.
Example
const parser = new DoxygenXmlParser({ options });
const dataModel = await parser.parse();
Constructors
Constructor |
Modifiers |
Description |
---|---|---|
Constructs a new instance of the DoxygenXmlParser class. |
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
The global configuration options. | |||
XMLParser |
The XML parser instance configured for Doxygen XML. |
Methods
Method |
Modifiers |
Description |
---|---|---|
Retrieves the value of a named attribute as a boolean. | ||
Retrieves the value of a named attribute as a number. | ||
Retrieves the names of all attributes present on the specified XML element. | ||
Retrieves the value of a named attribute as a string. | ||
Retrieves the boolean value of a named child element. | ||
Retrieves the numeric value of a named child element. | ||
Retrieves an array of named child elements from the given XML element. | ||
Retrieves the text content of a named child element. | ||
Retrieves the text content of the XML element. | ||
Determines whether the specified attribute exists on the given XML element. | ||
Determines whether the specified XML element has any attributes. | ||
Determines whether the specified inner element exists on the given XML element. | ||
Determines whether the XML element contains a text node. | ||
Determines whether a named inner element contains text. |