To generate xml using doxygen, use the following steps:
doxygen -g
to generate your properties file ( in case you don’t have one ). Open that property file, and set the GENERATE_XML property to YES, then run doxygen like:
doxygen Doxyfile source_file
If your property file’s name is not Doxyfile, replace that with your file’s name.