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>
------解决方案--------------------单层的怎么解析,多层的就怎么解析
------解决方案--------------------
解析和层数没有关系