使用tinyxml2,我正在尝试解析这个 Traffic Server 配置文件:
<LogFormat>
<Name = "simple"/>
<Format = "simple"/>
</LogFormat>
<LogObject>
<Format = "simple"/>
<Filename = "simple.log"/>
<Mode = "ascii"/>
</LogObject>
交通服务器 XML 配置格式如下所述:
LoadFile()
给我这个错误:
"Error=XML_ERROR_PARSING_ELEMENT ErrorID=6 (0x6) Line number=2"
Name
元素有什么问题?tinyxml2 可以简单地不解析 Traffic Server XML 配置文件吗?