xml.dom.minidom childnodes

Vincent De Baere vdebaere at lilly.csoft.net
Sun Jan 18 12:59:49 EST 2004


Mark McEahern wrote:

>On Sun, 2004-01-18 at 11:04, Vincent De Baere wrote:
>  
>
>>As you can see in the xml file, there is a newline after the (root) 
>>documentelement. I guess that's why I need to use menurootchildren[1] 
>>instead of menurootchildren[0] to access the first child.
>>    
>>
>
>Why not use getElementsByTagName and punt on the whole variable
>whitespace as childNodes business?
>  
>
That seems to be the solution indeed! Thank you!

Vincent




More information about the Python-list mailing list