将XML文件添加到文件列表 [英] Add XML file to the file list
问题描述
我想将XML文件的内容添加到doxygen生成的文档中。我将XML文件添加到doxygen配置文件的 INPUT
标记中。但是,尽管XML文件在文件列表中列出,但文件的内容未显示。我必须怎么做才能包含内容?
I want to add the contents of an XML file to doxygen generated documentation. I added the XML file to the INPUT
tag of the doxygen configuration file. However, while the XML file is listed in the file list, the contents of the file are not shown. What do I have to do to include the contents?
推荐答案
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
这篇关于将XML文件添加到文件列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!