Re: xml.dom won't traverse the whole XML tree

Alexandre CONRAD <[email protected]>
Newsgroups gmane.comp.python.xml
Message-ID <[email protected]>
Dan Gunter wrote:
> it runs through the whole file, for me, just in an infinite loop. so, I 
> guess I can't help you, since I don't see that behavior. maybe someone 
> else will.

You do have to add the "if next is None: break" to see where the loop stops.

If it stops at "surfchataineliorpromo2.mpg", then you have the same 
problem. If it stops at "amityville.mpg", then your version is correct. 
Anyhow, mine is now working fine after I upgraded to the latest PyXML.

Thanks all for your help.

Regards,
-- 
Alexandre CONRAD - TLV
Research & Development
tel : +33 1 30 80 55 05
fax : +33 1 30 80 55 06
6, rue de la plaine
78860 - SAINT NOM LA BRETECHE
FRANCE

_______________________________________________
XML-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/xml-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.