xml install problem - No module named Node

Tushar Wagle tushar at hursley.ibm.com
Thu Feb 1 14:04:52 EST 2001


For anyone else wondering about this, the answer's simple:

>    File: "iterator1.py", line 5, in ?
>       from xml.dom.Node import Node
>    ImportError: No module named Node

Node is now defined in __init__ of xml.dom

try instead
from xml.dom import Node

Many thanks to Kapil for his reply :)

..And can someone please fix the demo code!... 8)






More information about the Python-list mailing list