Package Bio :: Package EUtils :: Module dtd2py
[show private | hide private]
[frames | no frames]

Module Bio.EUtils.dtd2py

Internal class to convert DTDs to python form.

dtd2py [-m mixinmodule] [-u] <DTDfile>...

Converts the given DTD to a python form, and stores it in the dtds package
directory. That directory should be writable by the user running this. 
The new dtds module will have the same base name as the DTD, but with dashes and dots converted to underscores.

Options:
        -m <modulename> -- specify a mixin module to load. If a class in this
        module matches the DTD element name plus "Mixin" appended, then that class
        will be inherited from in the generated element class.
        -u  -- convert all element tag names to uppercase. Otherwise, case is
        preserved. Some XML applications specify using uppercase, others case
        preserving. Some XML element names may match python keyword or builtin
        names, and those DTDs should also be converted to uppercase to avoid syntax
        errors in the generated file.

Function Summary
  compile_file(dtdfile, mixin, toupper)
  do_it(filelist, mixin, toupper)
  main(argv)

Generated by Epydoc 2.1 on Thu Aug 10 20:01:11 2006 http://epydoc.sf.net