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

Module lxml.html.builder

HTML specialisation of ``builder.py`` by Fredrik Lundh

Usage:
   >>> from lxml.html.builder 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 Sat Aug 18 12:44:27 2007 http://epydoc.sf.net