当前位置: 代码迷 >> Java相关 >> XML解析,该怎么解决
  详细解决方案

XML解析,该怎么解决

热度:253   发布时间:2016-04-22 21:51:44.0
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>
XML

------解决方案--------------------
单层的怎么解析,多层的就怎么解析
------解决方案--------------------
解析和层数没有关系
  相关解决方案