以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 DOM/SAX/XPath 』  (http://bbs.xml.org.cn/list.asp?boardid=11)
----  怎样在dom中读和解析这个xml文件,并且找到页价值最小者(价格/页数),然后删除price和page属性  (http://bbs.xml.org.cn/dispbbs.asp?boardid=11&rootid=&id=17337)


--  作者:andy2005
--  发布时间:4/22/2005 5:57:00 PM

--  怎样在dom中读和解析这个xml文件,并且找到页价值最小者(价格/页数),然后删除price和page属性
这是我的 xml:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE Mybooks SYSTEM "Mybooks.dtd">

<?xml-stylesheet type="text/css" href="Mybooks.css"?>

<Mybooks>
 <TITLE>MyBooks</TITLE>
 <book id="1">
  <title>Visual C++</title>
  <subtitle>the Second Edition</subtitle>
  <publisher>Williams</publisher>
  <ISBN/>
  <EditInfo>002-01</EditInfo>
  <Author>John Smith</Author>
  <NumOfPages>231</NumOfPages>
  <SimpleDescription/>
  <price>32.00</price>
 </book>
 <book id="2">
  <title>Inventor Machine Design</title>
  <subtitle>CD</subtitle>
  <publisher>Ken</publisher>
  <ISBN/>
  <EditInfo>003-01</EditInfo>
  <Author>Peter Lee</Author>
  <NumOfPages>245</NumOfPages>
  <SimpleDescription/>
  <price>34.00</price>
 </book>
 <book id="3">
  <title>C++ Templates</title>
  <subtitle>Chinese Edition</subtitle>
  <publisher>Alice</publisher>
  <ISBN/>
  <EditInfo>007-01</EditInfo>
  <Author>Mary Joe</Author>
  <NumOfPages>408</NumOfPages>
  <SimpleDescription/>
  <price>62.00</price>
 </book>
</Mybooks>
怎样在dom中读和解析这个xml文件,并且找到页价值最小者(价格/页数),然后删除price和page属性,怎么做啊?帮帮忙吧,谢谢了


--  作者:andy2005
--  发布时间:4/22/2005 5:58:00 PM

--  
请高手指点,谢啦
--  作者:sunzhenbing
--  发布时间:4/26/2005 10:26:00 AM

--  
本站内就有关于这方面资料!好好找找,

在资料下载里面


--  作者:sunzhenbing
--  发布时间:4/26/2005 10:39:00 AM

--  
http://bbs.xml.org.cn/digest.asp?parentid=43
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
62.500ms