code: def parse_singular_string(t, tag_name):
      '''Parses the sole string value with name tag_name in tag t. Heavy-handed with the asserts.'''
      pos = t.getElementsByTagName(tag_name)
      assert(len(pos) == 1)
      pos = pos[0]
      assert(len(pos.childNodes) == 1)
      return pos.childNodes[0].datf parse_singular_string(t, tag_name):
      '''Parses the sole string value with name tag_name in tag t. Heavy-handed with the asserts.'''
      pos = t.getElementsByTagName(tag_name)
      assert(len(pos) == 1)
      pos = pos[0]
      assert(len(pos.childNodes) == 1)
      return pos.childNodes[0].data
docs: Parses the sole string value with name tag_name in tag t. Heavy-handed with the asserts.