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

14.19. DocumentFragment.write()

This is the same as the .write() method in our Document class.

xml4create.py
# - - -   D o c u m e n t F r a g m e n t . w r i t e   - - -

    def write ( self, outFile=None ):
        """Prettyprint self in XML to outFile."""
        if  outFile is None:
            outFile  =  sys.stdout
        domlette.PrettyPrint ( self.node, outFile )