XML解析,该怎么解决

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