读书人

XML解析,该怎么解决

发布时间: 2013-06-19 10:26:41 作者: rapoo

XML解析
我XML的结构是如下样式的,就是结构是多层的,这样的该如何解析?
<Showpage>
<Button>
<X>0</X>
<Y>9</Y>
<Height>...</Height>
.......
</Button>
<Image>
<X>0</X>
<Y>9</Y>
<Height>...</Height>
.......
</Image>
<Static>
<X>0</X>
<Y>9</Y>
<Height>...</Height>
.......
</Static>
<Button>
<X>0</X>
<Y>9</Y>
<Height>...</Height>
.......
</Button>
</Showpage>
<Showpage>
<Button>
<Image>
<Static>
<Button>
<Image>
</Showpage>
<Showpage>
<Button>
<Image>
<Static>
<Button>
<Bar></Bar>
</Showpage> 解析和层数没有关系

读书人网 >Java相关

热点推荐