且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将XML文件添加到文件列表

更新时间:2023-10-01 22:29:52

Doxygen不支持解析XML的本机支持,因此您不能使用 INPUT ,但是您可以在输出中包含XML文件的内容。

Doxygen does not have native support for parsing XML, so you cannot use INPUT, but you can include the contents of an XML file in the output.

假设您的XML文件被称为 test.xml ,位于目录 xml 中(相对于运行doxygen的位置)。然后,您可以使用以下注释块:

Suppose your XML file is called test.xml and is located in directory xml (relative to where doxygen is run). Then you can use the following comment block:

/** @page xml_example My XML File
 *  Here is my xml file included in the doxygen output:
 *  @verbinclude test.xml
 */

为确保doxygen可以找到XML文件,您需要设置xml目录的路径

to make sure doxygen can find the XML file you need to set the path to the xml directory

EXAMPLE_PATH = xml