Python Paste


lxmlformat

Parses XML and HTML to lxml nodes


Attributes

a xml

<Format lxml_xml convert text/xml, application/xml to type=lxml.etree>

a html_transform

<etree.XSLT object at 0xb73d0d1c>

a html

<Format lxml_html convert text/html to type=lxml.etree>

a html_xsl

'\n<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\n  <xsl:output method="html" encoding="UTF-8" />\n  <xsl:template match="/">\n    <xsl:copy-of select="."/>\n  </xsl:template>\n</xsl:transform>\n'

Functions

f load_xml(fp, content_type) ...

f dump_xml_iter(data, content_type) ...

f load_html(fp, content_type) ...

f dump_html_iter(data, content_type) ...

See the source for more information.