parameters: (self, text_data)
docstring: Appends a new part to the XML rich text
docstring_summary: Appends a new part to the XML rich text
docstring_tokens: Appends a new part to the XML rich text
function: def rich_text_serialize(self, text_data):
          """Appends a new part to the XML rich text"""
          dom_iter = self.dom.createElement("rich_text")
          for tag_property in cons.TAG_PROPERTIES:
              if self.curr_attributes[tag_property] != "":
                  dom_iter.setAttribute(tag_property, self.curr_attributes[tag_property])
          self.nodes_list[-1].appendChild(dom_iter)
          text_iter = self.dom.createTextNode(text_data)
          dom_iter.appendChild(text_iter)
function_tokens: def rich_text_serialize ( self , text_data ) : dom_iter = self . dom . createElement ( "rich_text" ) for tag_property in cons . TAG_PROPERTIES : if self . curr_attributes [ tag_property ] != "" : dom_iter . setAttribute ( tag_property , self . curr_attributes [ tag_property ] ) self . nodes_list [ - 1 ] . appendChild ( dom_iter ) text_iter = self . dom . createTextNode ( text_data ) dom_iter . appendChild ( text_iter )