请问xml.etree.ElementTree有类似childNodes的func么?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

请问xml.etree.ElementTree有类似childNodes的func么?

huang falls
as title

thanks a lot!

Regards
Falls
_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese
Reply | Threaded
Open this post in threaded view
|

Re: 请问xml.etree.ElementTree有类似childNodes的func么?

limodou
2008/1/16 huang falls <[hidden email]>:
as title

thanks a lot!

可以使用

getchildren()


--
I like python!
UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/
meide <<wxPython UI module>>: http://code.google.com/p/meide/
My Blog: http://www.donews.net/limodou
_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese
Reply | Threaded
Open this post in threaded view
|

Re: 请问xml.etree.ElementTree有类似childNodes的func么?

huang falls
Hello limodou!

   Thanks!

   原来是个undocument api, 文档里没有,必须看代码才行。。。

在 08-1-16,limodou<[hidden email]> 写道:

> 2008/1/16 huang falls <[hidden email]>:
>
> > as title
> >
> > thanks a lot!
> >
> >
> 可以使用
>
> getchildren()
>
>
> --
> I like python!
> UliPad <<The Python Editor>>:
> http://code.google.com/p/ulipad/
> meide <<wxPython UI module>>: http://code.google.com/p/meide/
> My Blog: http://www.donews.net/limodou
> _______________________________________________
> python-chinese
> Post: send [hidden email]
> Subscribe: send subscribe to
> [hidden email]
> Unsubscribe: send unsubscribe to
> [hidden email]
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>
_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese