1

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

我从终端运行:

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

我在文件夹 xml 中有我的 doxygen 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

谢谢

4

1 回答 1

0

你有没有尝试其他方法,我的建议

  1. 使用不同版本的 doxyclean
  2. 将参数更改为不同的样式,可能会给出文件夹的完整路径。 ./doxyclean.py -i Users/xxx/doxyclean/xml/ -o ./clean/ -p
  3. 从 doxygen 重新生成 xml

doxyclean 工作正常。我也遇到了这个错误,我尝试了我的建议 2,它奏效了。

于 2010-02-04T08:24:42.040 回答