I have a solution
I found it necessary to document my XML configuration files, and since I use Doxygen for all my other code, I want to use Doxygen. The problem is that Doxygen does not support XML as a source code language (e.g. C ++, Python, etc.). Actually, the problem is worse than Doxygen trying to interpret XML, so hiding Doxygen tags in XML comments is not very good (Doxygen ignores anything in XML comments).
Purpose: XML config file (config.xml) with doxygen tags. Tags must be in an XML file.
Decision:
- XML document file (config.xml)
- Create a Doxygen-compatible document from the XML file (config.xml.md)
- Configure Doxygen to process a document that supports Doxygen (config.xml.md)
Here is the Makefile rule for what I'm talking about:
So XML will look like this:
<product name='RM6x32'> <tuner> </tuner> </product>
Tell Doxygen to read config.xml.md by adding the following to your Doxyfile. Be sure to add this after the initial assignment of FILE_PATTERNS to your Doxyfile.
FILE_PATTERNS += *.xml.md
This XML example will generate a page called “RM6x32 Configuration File” in the “Related Pages” section of the Doxygen documentation.
I hope this helps, and I hope this encourages someone to create a more integrated solution.
source share