Minidom getElementById not working



Minidom's getElementById function is returning None for any entry I pass to it.


For example, this code:



l = minidom.parseString('<node id="node">Node</node>')
print(l.getElementById("node"))


Prints "None" on my computer.


I must be doing something here wrong but I can't figure it out!


I'm running Python 3.3.2 if that helps.


No comments:

Post a Comment