Package lxml :: Module htmlbuilder
[show private | hide private]
[frames | no frames]

Module lxml.htmlbuilder

Usage:
   >>> from lxml.htmlbuilder import *
   >>> html = HTML(
   ...            HEAD( TITLE("Hello World") ),
   ...            BODY( CLASS("main"),
   ...                  H1("Hello World !")
   ...            )
   ...        )

   >>> import lxml.etree
   >>> print lxml.etree.tostring(html, pretty_print=True)
   <html>
     <head>
       <title>Hello World</title>
     </head>
     <body class="main">
       <h1>Hello World !</h1>
     </body>
   </html>

Function Summary
  CLASS(v)
  FOR(v)

Generated by Epydoc 2.1 on Thu Jul 26 19:14:08 2007 http://epydoc.sf.net