Re: problems with xml parsing (python 3.3)

2012-10-30 Thread jannidis
If someone comes across this posting with the same problem, the best answer seems to be: avoid Pythons xml.etree.ElementTree and use this library instead: http://lxml.de/ It works like expected and supports xpath much better. -- http://mail.python.org/mailman/listinfo/python-list

Re: problems with xml parsing (python 3.3)

2012-10-29 Thread jannidis
Am Sonntag, 28. Oktober 2012 03:27:14 UTC+1 schrieb jann...@gmail.com: > Hello all, > > > > I am new to Python and have a problem with the behaviour of the xml parser. > Assume we have this xml document: > > > > > > > > > > Title of the first book. > > > >

Re: problems with xml parsing (python 3.3)

2012-10-27 Thread jannidis
To my understanding the empty element is a child of entry as is the text node. Is there anything I am doing wrong here? Any help is appreciated, Fotis -- http://mail.python.org/mailman/listinfo/python-list

problems with xml parsing (python 3.3)

2012-10-27 Thread jannidis
Hello all, I am new to Python and have a problem with the behaviour of the xml parser. Assume we have this xml document: Title of the first book. Title of the second book. If I now check for the text of all 'entry' nodes, the tex