Next / Previous / Contents / TCC Help System / NM Tech homepage

14. The source code

Now we move on to the design of the module. Design goals include:

To solve the factory method access problem, the module uses these links between objects so that any node in the tree can get to the factory functions it needs:

14.1. Prologue to

Now, on to the actual source code of the module. First is a prologue that gives the module's documentation string:
"""  For creating XML files from scratch.

For full documentation, see:

Next, the imports. We need the sys module so we can access the standard output stream, sys.stdout. Then we'll need the domlette to handle the XML functions.
# Imports

import sys
import Ft.Xml.Domlette as domlette