XDoc

A complete html document. Consists of the outer HTML tag with an embedded HEAD tag and BODY tag, both of which are available as public variables:

head

An instance of Head which represents the HEAD tag of the document.

body

An instance of Body which represents the BODY tag of the document.

All sequence and keyword arguments are passed to the BODY tag, except for the following special attributes:

title

A string representing the title of the document. This will cause a TITLE tag to be added to the contents of the HEAD tag.

Base Classes

Methods

__init__(self, *parms, **kw)

   def __init__(self, *parms, **kw):

__str__(self)

   def __str__(self):

Overrides Tag.__str__() so as to prefix the return value with the special DOCTYPE tag.

writeOn(self, out)

   def writeOn(self, out):

Overrides Tag.writeOn() so as to prefix the output with the special DOCTYPE tag.