[lxml-dev] objectify and processing instructions
Emanuele D'Arrigo
manu3d at gmail.com
Thu Jul 16 01:15:38 CEST 2009
Hi everybody,
having a piece of xml such as:
<?xsl-transform href="test.xsl" type="text/xsl"?>
<aRoot />
I can use:
xmlObject = objectify.fromstring()
piElement = xmlObject.getprevious()
but the returned object (differently from an xml object generated with
etree.fromstring()), is not a processing instruction but an
ObjectifiedElement, and doesn't seem to give me access to the href and type
attributes. I'm aware that they are actually a single pseudo-attribute, but
how do I access it?
Manu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/lxml-dev/attachments/20090716/599f8520/attachment.htm
More information about the lxml-dev
mailing list