易截截图软件、单文件、免安装、纯绿色、仅160KB

移动XML节点的问题

我又这样一个
<cun>
  <node month="2009-10" mytime="2009-10-11"/>
  <node month="2009-10" mytime="2009-10-11"/>
  <node month="2009-10" mytime="2009-10-23"/>
  <node month="2009-11" mytime="2009-11-11"/>
  <node month="2009-12" mytime="2009-12-11"/>
  <node month="2009-12" mytime="2009-12-11"/>
  <node month="2009-12" mytime="2009-12-14"/>
  <node month="2009-12" mytime="2009-12-14"/>
</cun>
XML文件,我想将相同月份的节点放在一个节点下

就是构造成这样
<cun>
<node month="2009-10">
    <node month="2009-10" mytime="2009-10-11"/>
    <node month="2009-10" mytime="2009-10-11"/>
    <node month="2009-10" mytime="2009-10-23"/>
</node>
<node month="2009-11">
      <node month="2009-11" mytime="2009-11-11"/>
</node>
<node month="2009-12">
      <node month="2009-12" mytime="2009-12-11"/>


相关问答:

php读取XML数据问题

我是想用PHP从数据库中读取数据,然后写入xml,然后FLASH显示XML中的数据
但是本地测试PHP能读出XML,传到空间里就读不出来了,请问怎么回事?

错误代码如下:
Fatal error: Cannot instantiate non-exis ......

jquery 读取XML?

HTML code:

<div id="tessx">
<ALEXA VER="0.9" URL="163.com/" HOME="0" AID="=">
<RLS PREFIX="http://" more="79" ......

请问Java如何把xml转txt格式呢?

今天遇到一个问题,把xml中的值装到.txt格式的文件中。
我目前想到两种比较笨的方法:1.可以通过xmlspy编辑工具实现
  2.通过把xml转成Javabean,然后转到excel中,再从新保存重命名为. ......

求Java如何实现xml文件

已知文件1.xml和数据文件db.xml,如何用java编写程序,得出2.xml文件?
1.已知xml文件 1.xml结构如下:
<cs>
  <cs name="cs1" details="This is cs1" country="China&q ......

如何用ASP读取 XML - Web 开发 / ASP

<?xml version="1.0"?>
<root>
<status>433</status>
<msg>这个是汉字</msg>
<serialno>123</serialno>
</root>
如何用ASP读取 status值 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号