Translate the instance back to XML.
# - - - A g e S e x G r o u p . w r i t e N o d e
def writeNode ( self, parent ):
"""Translate self to XML.
"""
#-- 1 --
# [ if self.age is true ->
# parent := parent with an rnc.AGE_A attribute (self.age)
# else -> I ]
if self.age:
parent.attrib [ rnc.AGE_A ] = self.age
#-- 2 --
# [ simile ]
if self.sex:
parent.attrib [ rnc.SEX_A ] = self.sex
#-- 3 --
if self.q:
parent.attrib [ rnc.Q_A ] = self.q
#-- 4 --
if self.count:
parent.attrib [ rnc.COUNT_A ] = self.count
#-- 5 --
if self.fide:
parent.attrib [ rnc.FIDE_A ] = self.fide