我需要一些建议如何使用 java simplexml lib 解析这个 xml。问题是我不知道在这个 xml 元素中有多少项目。
<Playoffs>
<PlayoffStatus>Potential Brackets</PlayoffStatus>
<LConference>Western Conference</LConference>
<RConference>Eastern Conference</RConference>
<LTeam1>Clippers (1)</LTeam1>
<LTeam2>Nuggets (8)</LTeam2>
<LTeam3>Grizzlies (4)</LTeam3>
<LTeam4>Warriors (5)</LTeam4>
<LTeam5>Spurs (3)</LTeam5>
<RTeam1>Heat (1)</RTeam1>
<RTeam2>Celtics (8)</RTeam2>
<RTeam3>Pacers (4)</RTeam3>
<RTeam4>Bulls (5)</RTeam4>
<RTeam5>Hawks (3)</RTeam5>
.......