The documentation gives a simple parser example. I changed it into something like this:
from lxml import etree class EchoTarget(object): def data(self, d