[Twisted-Python] Help parsing with microdom

xhantt xhantt at gmail.com
Mon Apr 18 19:29:08 EDT 2005

Hi, I'm using microdom to parse some xml input.

>From the following example I wan to get 'hello' string

import sys

from twisted.web import microdom

d = microdom.parseString('<html><body>hello</body></html>')

print d.childNodes[0].childNodes[0].childNodes[0]

But i get Text('hello'), please help any suggestion will be appreciated.

More information about the Twisted-Python mailing list