您的位置:程序门 -> web 开发 -> xml/soap



jdom解析复杂的xml


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


jdom解析复杂的xml
发表于:2007-04-29 13:13:18 楼主
<?xml   version= "1.0 "   encoding= "utf-8 "?>
<!--   edited   with   xmlspy   v2004   rel.   3   u   (http://www.xmlspy.com)   by   zj   (huayu)   -->
<sc:school   xmlns:sc= "http://school.org/ "   xmlns:xsi= "http://www.w3.org/2001/xmlschema-instance "   xsi:schemalocation= "http://school.org/   c:/school2.xsd ">
<sc:class>
                        <sc:aaa   id= "001 ">  
              <stageconstructionper>
<area> 5 </area>
                                                        <investmentbudget> 40 </investmentbudget> <actualinvestment> 40 </actualinvestment>
<info> kfc </info>
</stageconstructionper>
      </sc:aaa>
      <sc:bbb>  
          22222222
      </sc:bbb>  
</sc:class>
大家有什么好的办法使用jdom将深层的xml的值解析出来?例如( <area> 5 </area> 中的5)
谢谢大家的帮忙,谢谢了


快速检索

最新资讯
热门点击