Re: Problem with pyXML DOM

2005-05-04 Thread Maniac
Florian Lindner wrote: >But I don't really understand the logic: > >given I have the node A > >path > >A.firstChild.nodeValue == path > >How would the second child of A look like? (ok, None in this case) > Yes. It's actually required by DOM standard: NodeList (which is returned from getElementsBy

Re: Problem with pyXML DOM

2005-05-04 Thread Florian Lindner
Maniac wrote: > Florian Lindner wrote: > >>Traceback (most recent call last): >> File "ConfigReader.py", line 40, in ? >>c = ConfigReader(f) >> File "ConfigReader.py", line 32, in __init__ >>print sourceNode.getElementsByTagName("filename")[0].nodeValue() >>TypeError: 'NoneType' object

Re: Problem with pyXML DOM

2005-05-04 Thread Maniac
Florian Lindner wrote: >Traceback (most recent call last): > File "ConfigReader.py", line 40, in ? >c = ConfigReader(f) > File "ConfigReader.py", line 32, in __init__ >print sourceNode.getElementsByTagName("filename")[0].nodeValue() >TypeError: 'NoneType' object is not callable > > Thi