0

如果我们在使用 Simpleframework 解析该 xml 文件时具有如下相同的元素名称该怎么办?

<CCCC_Project>
    <timestamp>Wed Jun 05 15:00:27 2013</timestamp>-
    <project_summary>
        <number_of_modules level="0" value="1" />
        <lines_of_code level="0" value="3" /> lines_of_code_per_module
        <level="0" value="3.000" />
        <McCabes_cyclomatic_complexity level="0" value="0" />
        <McCabes_cyclomatic_complexity_per_module level="0" value="0.000" />
        <lines_of_comment level="0" value="0" />
        <lines_of_comment_per_module level="0" value="0.000" />
        <lines_of_code_per_line_of_comment level="0" value="------" />
        <McCabes_cyclomatic_complexity_per_line_of_comment level="0" value="------" />
        <IF4 level="0" value="0" />
        <IF4_per_module level="0" value="0.000" />
        <IF4_visible level="0" value="0" />
        <IF4_visible_per_module level="0" value="0.000" />
        <IF4_concrete level="0" value="0" />
        <IF4_concrete level="0.000" value="0" />
        <rejected_lines_of_code level="0" value="0" />
    </project_summary>
4

1 回答 1

0

尝试这个

@ElementList(inline=true, entry="IF4_concrete")
List<IF_concrete> list;
于 2013-06-07T08:24:37.033 回答