以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 DOM/SAX/XPath 』  (http://bbs.xml.org.cn/list.asp?boardid=11)
----  高手看看用java怎么从下面的文档中提取每个结点的内容.(不能用递归哦)  (http://bbs.xml.org.cn/dispbbs.asp?boardid=11&rootid=&id=15549)


--  作者:xiongdihuo
--  发布时间:3/14/2005 8:01:00 PM

--  高手看看用java怎么从下面的文档中提取每个结点的内容.(不能用递归哦)
<?xml version="1.0" encoding="UTF-8"?>
<!-- file  SystemConfig.xml -->
<sysconfig>
<kernelconfig>
<configitem>
  <name>threads</name>
  <type>combo</type>
  <value>multipy</value>
  <value>signal</value>
</configitem>
<configitem>
  <name>samaphone</name>
  <type>text</type>
  <value>grail</value>
</configitem>
</kernelconfig>

<netconfig>
<configitem>
  <name>protocol</name>
  <type>combo</type>
  <value>TCP_IP</value>
  <value>FTP</value>
  <value>UDP</value>
</configitem>
<configitem>
  <name>wireless</name>
  <type>text</type>
  <value>bluetooth</value>
</configitem>
</netconfig>

<ioconfig>
<configitem>
  <name>com</name>
  <type>combo</type>
  <value>com1</value>
  <value>com2</value>
</configitem>
<configitem>
  <name>baudrate</name>
  <type>combo</type>
  <value>9527</value>
  <value>9090</value>
</configitem>
</ioconfig>
</sysconfig>


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
46.875ms