首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java相关 >

XML解析,该怎么解决

2013-06-19 
XML解析我XML的结构是如下样式的,就是结构是多层的,这样的该如何解析?ShowpageButtonX0/XY9/Y

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> 解析和层数没有关系

热点排行