470,636 Members | 1,462 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,636 developers. It's quick & easy.

minidom Node to Element

Hey,

Can I convert an xml.dom.Node object to an xml.dom.Element object? I
want to do the conversion inside a condition like this:

if node.nodeType == Node.ELEMENT_NODE:
# do conversion:
element = Element(node)
element = node.toElement()

so it definitely won't cause problems. I just can't find a way to do it!

(I want to be able to call getElementsByTagName() on the resultant
object; any other workarounds which allow the same functionality would
be just as cool ;-)

Cheers,
Richard
Jul 19 '05 #1
0 967

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Geiregat Jonas | last post: by
reply views Thread by Oliver Walczak | last post: by
4 posts views Thread by Skip Montanaro | last post: by
4 posts views Thread by Derek Basch | last post: by
4 posts views Thread by webdev | last post: by
1 post views Thread by Dean Card | last post: by
4 posts views Thread by bkamrani | last post: by
1 post views Thread by Maksim Kasimov | last post: by
1 post views Thread by Korara | last post: by
???
1 post views Thread by Stoney L | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.