code: def parse_xml_node(self, node):
          '''Parse an xml.dom Node object representing a data port into this
          object.
  
          '''
  
          self.name = node.getAttributeNS(RTS_NS, 'name')
          self.comment = node.getAttributeNS(RTS_EXT_NS, 'comment')
          if node.hasAttributeNS(RTS_EXT_NS, 'visible'):
              visible = node.getAttributeNS(RTS_EXT_NS, 'visible')
              if visible.lower() == 'true' or visible == '1':
                  self.visible = True
              else:
                  self.visible = False
          for c in get_direct_child_elements_xml(node, prefix=RTS_EXT_NS,
                                                 local_name='Properties'):
              name, value = parse_properties_xml(c)
              self._properties[name] = value
          return self parse_xml_node(self, node):
          '''Parse an xml.dom Node object representing a data port into this
          object.
  
          '''
  
          self.name = node.getAttributeNS(RTS_NS, 'name')
          self.comment = node.getAttributeNS(RTS_EXT_NS, 'comment')
          if node.hasAttributeNS(RTS_EXT_NS, 'visible'):
              visible = node.getAttributeNS(RTS_EXT_NS, 'visible')
              if visible.lower() == 'true' or visible == '1':
                  self.visible = True
              else:
                  self.visible = False
          for c in get_direct_child_elements_xml(node, prefix=RTS_EXT_NS,
                                                 local_name='Properties'):
              name, value = parse_properties_xml(c)
              self._properties[name] = value
          return self
docs: Parse an xml.dom Node object representing a data port into this
          object.