# - - - T a x a T r e e . w r i t e X M L def writeXML ( self, parent ): '''Build the XML taxonomic tree. '''
At this level, the XML is very simple. We attach to the
rnc.TAXONOMY_N element, then call the
recursive tree builder Section 19.9, “
Taxon.writeXML(): Recursive XML tree
build the tree starting with
#-- 1 -- # [ parent := parent with a new rnc.TAXONOMY_N element # added # txRoot := that new element ] txRoot = E ( rnc.TAXONOMY_N ) parent.append ( txRoot ) #-- 2 -- # [ txRoot := txRoot with rnc.TAXON_N elements added # representing the tree rooted at self.root ] self.root.writeXML ( txRoot )