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
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
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