libxml2 python, all properties question

Pavel Stehule stehule at kix.fsv.cvut.cz
Wed Feb 26 03:43:53 EST 2003


Hello,

I can't use property properties. I use libxml2.5.2. I wont iterate over all
prop in element. How I can do it?

import libxml2
doc = libxml2.parseFile("data.xml")
root = doc.getRootElement()
for p in root.properties: ?? don't work
   print p   ??????????

thank yoy
Pavel Stehule




More information about the Python-list mailing list