Tanja wrote: > I have put a small standalone test programm with two input files in the > attached archive, which demonstrate what I mean.
This is the fix:
for xmlfile in chfiles:
try:
print 'Parse %s' %xmlfile
doc = xml.Document(xmlfile, 'channel')
print 'doc children %s' % len(doc.children)
except:
print 'error parsing channel xmlfile %s' %xmlfile
continue;
for child in doc:
if child.name == "data":
# HERE is something weird going on!
child.unlink() # <----- Do not forget that
new = maindoc.add_child(child)
print 'maindoc children: %s' % len(maindoc.children)
--
This is the Time Travelling Agency's answering machine. We're closed
right now but leave a message before the beep and we might have called
you back.
pgpn7SDB5XJV3.pgp
Description: PGP signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Freevo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-devel
