Doxyclean错误

时间:2010-01-14 15:46:33

标签: doxygen

我正在尝试运行doxyclean但无法让它工作,任何帮助都将不胜感激...

我正在从终端运行:

./doxyclean.py --input=./xml/ --output=./clean/ --name="MyProject" --phone -v

我的doxygen xml位于xml文件夹中,与doxyclean.py在同一目录中

结果是:

Checking arguments
Cleaning XML files:
Traceback (most recent call last):
  File "./doxyclean.py", line 1220, in <module>
    sys.exit(main())
  File "./doxyclean.py", line 1171, in main
    cleanXML(filePath, xmlOutputDirectory)
  File "./doxyclean.py", line 93, in cleanXML
    if not fileIsDocumented(filePath):
  File "./doxyclean.py", line 62, in fileIsDocumented
    originaldoc = minidom.parse(filePath)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/dom/minidom.py", line 1918, in parse
    return expatbuilder.parse(file)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/dom/expatbuilder.py", line 924, in parse
    result = builder.parseFile(fp)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/dom/expatbuilder.py", line 207, in parseFile
    parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 17, column 155

感谢

1 个答案:

答案 0 :(得分:0)

你是否尝试过其他方式,我的建议

  1. 使用不同版本的doxyclean
  2. 将参数更改为不同的样式,也可以提供文件夹的完整路径。 ./doxyclean.py -i Users/xxx/doxyclean/xml/ -o ./clean/ -p
  3. 从doxygen再生xml
  4. doxyclean工作得很好。我也得到了这个错误,我尝试了我的建议2并且它有效。