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

14.18. DocumentFragment.serialize()

This is like the .serialize() method in our Document class.

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

    def serialize ( self, outFile=None ):
        """Serialize self in XML to outFile."""
        if  outFile is None:
            outFile  =  sys.stdout
        domlette.Print ( self.node, outFile )