The purpose of this object is to hold the information
necessary to output a
The 4Suite implementation does not support the DOM's
DocumentType interface. This
object is simply a container for the
attributes, so they are available to the
Document constructor if the user wants to use
rootGI is also stored away, and
if we were picky, we would check it against the
rootGI argument passed to the
Document constructor, but that's wasted
effort—the latter is always used.
# - - - - - c l a s s D o c u m e n t T y p e - - - - - class DocumentType: """Represents an XML document type. State/invariants: .rootGI: [ as passed to constructor ] .publicId: [ as passed to constructor ] .systemId: [ as passed to constructor ] """
The constructor is pro-forma.
# - - - D o c u m e n t T y p e . _ _ i n i t _ _ - - - def __init__ ( self, rootGI, publicId=None, systemId=None ): """Constructor for a DocumentType object. [ (rootGI is the root element name) and (publicId is a public ID as a string or None) and (systemId is a system ID as a string) -> return a new DocumentType object with those values ] """ self.rootGI = rootGI self.publicId = publicId self.systemId = systemId