Python论坛  - 讨论区

标题:[python-chinese] xml.dom.minidom 更新节点问题

2007年11月04日 星期日 17:58

俊杰蔡 yzcaijunjie在gmail.com
星期日 十一月 4 17:58:52 HKT 2007

hi£¬all£º

¶ÔÓÚÒ»¸öxmlÎļþ

     1
    2
    3


xml.dom.minidomÊÇ·ñÓÐÏà¹Ø·½·¨Ö±½Ó¸üÐÂÖеÄÖµ£¿

ÎÒÄ¿Ç°Ö»ÄÜÏÈɾ³ý½Úµã£¬È»ºóappendÔö¼ÓÒ»¸öеĽڵ㣬ÕâÑùÂÔÏÔÂé·³¡£


лл
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071104/65586da6/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年11月04日 星期日 18:02

Zoom.Quiet zoom.quiet在gmail.com
星期日 十一月 4 18:02:45 HKT 2007

On 11/4/07, 俊杰蔡 <yzcaijunjie在gmail.com> wrote:
> hi,all:
>
> 对于一个xml文件
使用 elementtree 模块来操作吧!

> 
>      1
>     2
>     3
> 
>
> xml.dom.minidom是否有相关方法直接更新中的值?
>
> 我目前只能先删除节点,然后append增加一个新的节点,这样略显麻烦。
>
>
> 谢谢
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to
> python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to
> python-chinese-request在lists.python.cn
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>


-- 
'''Time is unimportant, only life important!
过程改进乃是开始催生可促生靠谱的人的组织!
'''http://zoomquiet.org
blog  @ http://blog.zoomquiet.org/pyblosxom/
wiki  @ http://wiki.woodpecker.org.cn/moin/ZoomQuiet
scrap @ http://floss.zoomquiet.org ; http://skm.zoomquiet.org
douban@ http://www.douban.com/people/zoomq/
好看簿 @ http://zoomq.haokanbu.com/
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Pls. usage OOo to replace M$ Office. http://zh.openoffice.org
Pls. usage 7-zip to replace WinRAR/WinZip.  http://7-zip.org
You can get the truely Freedom 4 software.

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年11月04日 星期日 18:37

俊杰蔡 yzcaijunjie在gmail.com
星期日 十一月 4 18:37:10 HKT 2007

²¢²»°üº¬ÔÚ±ê×¼¿âÖаɣ¬ËùÒÔ»¹²»ÄÜÓÃ


ÔÚ07-11-4£¬Zoom. Quiet <zoom.quiet在gmail.com> дµÀ£º
>
> On 11/4/07, ¿¡½Ü²Ì <yzcaijunjie在gmail.com> wrote:
> > hi£¬all£º
> >
> > ¶ÔÓÚÒ»¸öxmlÎļþ
> ʹÓà elementtree Ä£¿éÀ´²Ù×÷°É£¡
>
> > 
> >      1
> >     2
> >     3
> > 
> >
> > xml.dom.minidomÊÇ·ñÓÐÏà¹Ø·½·¨Ö±½Ó¸üÐÂÖеÄÖµ£¿
> >
> > ÎÒÄ¿Ç°Ö»ÄÜÏÈɾ³ý½Úµã£¬È»ºóappendÔö¼ÓÒ»¸öеĽڵ㣬ÕâÑùÂÔÏÔÂé·³¡£
> >
> >
> > лл
> >
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to
> > python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to
> > python-chinese-request在lists.python.cn
> > Detail Info:
> > http://python.cn/mailman/listinfo/python-chinese
> >
>
>
> --
> '''Time is unimportant, only life important!
> ¹ý³Ì¸Ä½øÄËÊÇ¿ªÊ¼´ßÉú¿É´ÙÉú¿¿Æ×µÄÈ˵Ä×éÖ¯!
> '''http://zoomquiet.org
> blog  @ http://blog.zoomquiet.org/pyblosxom/
> wiki  @ http://wiki.woodpecker.org.cn/moin/ZoomQuiet
> scrap @ http://floss.zoomquiet.org ; http://skm.zoomquiet.org
> douban@ http://www.douban.com/people/zoomq/
> ºÃ¿´²¾ @ http://zoomq.haokanbu.com/
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Pls. usage OOo to replace M$ Office. http://zh.openoffice.org
> Pls. usage 7-zip to replace WinRAR/WinZip.  http://7-zip.org
> You can get the truely Freedom 4 software.
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071104/2464437a/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年11月05日 星期一 08:26

Wayne moonbingbing在gmail.com
星期一 十一月 5 08:26:55 HKT 2007

python2.5里面有这个库

在07-11-4,俊杰蔡 <yzcaijunjie at gmail.com> 写道:
>
> 并不包含在标准库中吧,所以还不能用
>
>
> 在07-11-4,Zoom. Quiet <zoom.quiet at gmail.com> 写道:
> >
> > On 11/4/07, 俊杰蔡 <yzcaijunjie at gmail.com> wrote:
> > > hi,all:
> > >
> > > 对于一个xml文件
> > 使用 elementtree 模块来操作吧!
> >
> > > 
> > >      1
> > >     2
> > >     3
> > > 
> > >
> > > xml.dom.minidom是否有相关方法直接更新中的值?
> > >
> > > 我目前只能先删除节点,然后append增加一个新的节点,这样略显麻烦。
> > >
> > >
> > > 谢谢
> > >
> > >
> > > _______________________________________________
> > > python-chinese
> > > Post: send python-chinese at lists.python.cn
> > > Subscribe: send subscribe to
> > > python-chinese-request at lists.python.cn
> > > Unsubscribe: send unsubscribe to
> > > python-chinese-request at lists.python.cn
> > > Detail Info:
> > > http://python.cn/mailman/listinfo/python-chinese
> > >
> >
> >
> > --
> > '''Time is unimportant, only life important!
> > 过程改进乃是开始催生可促生靠谱的人的组织!
> > '''http://zoomquiet.org
> > blog  @ http://blog.zoomquiet.org/pyblosxom/
> > wiki  @ http://wiki.woodpecker.org.cn/moin/ZoomQuiet
> > scrap @ http://floss.zoomquiet.org ; http://skm.zoomquiet.org
> > douban@ http://www.douban.com/people/zoomq/
> > 好看簿 @ http://zoomq.haokanbu.com/
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > Pls. usage OOo to replace M$ Office. http://zh.openoffice.org
> > Pls. usage 7-zip to replace WinRAR/WinZip.  http://7-zip.org
> > You can get the truely Freedom 4 software.
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>



-- 
wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20071105/43eca676/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号