John J. Lee
jjl at pobox.com
Wed Oct 1 19:42:52 CEST 2003
"Greg Krohn" <ask at me.com> writes:
> "Geiregat Jonas" <eniac at sdf-eu.org> wrote in message
> news:3f79ad4b$0$10696$ba620e4c at reader2.news.skynet.be...
> > obj.getElementsByTagName("name") then I have an object, but how can I
> > get the data between the tags ? I could do .toxml() and then strip it
> Given <name>Greg</name>, 'Greg' is considered an element inside the 'name'
> element. So, all you have to do is go one level of elements deeper.
> myname = obj.getElementsByTagName("name").childNodes.data
Might want to read up about normalization, too.
More information about the Python-list