# - - - S t d B i n d . w r i t e X M L
def writeXML ( self, parent ):
'''Generate XML for standard codes.
'''
This method is generally similar to Section 28.7, “EqBind.writeXML()”.
#-- 1 --
# [ eng := English name for self
# taxon := taxon for self ]
eng = self.eng()
taxon = self.lookup()
#-- 2 --
# [ abbrNode := a new rnc.ABBR_N element added
# whose rnc.CODE_A attribute is self.abbr, stripped;
# whose rnc.SCI_A attribute is taxon.sci; and whose
# text content is (eng) ]
abbrNode = E ( rnc.ABBR_N,
{ rnc.CODE_A: self.abbr.rstrip(),
rnc.SCI_A: taxon.sci },
eng )
#-- 3 --
# [ parent := parent with abbrNode appended ]
parent.append ( abbrNode )