lib/cultural_network/import/feature_data.rb
# ##################################################################### #
# extract and return the top-level (i.e., not inside another object type) geogname
extract and return the top-level  geogname
extract and return the top - level geogname
def extract_geogname(doc)
      elements = (doc/'/geogname')
      if(elements.size > 0)
        return "unknown" if elements[0].inner_text.length < 1
        return elements[0].inner_text
      else
        return "unknown"
      end
    end
def extract_geogname ( doc ) elements = ( doc / '/geogname' ) if ( elements . size > 0 ) return "unknown" if elements [ 0 ] . inner_text . length < 1 return elements [ 0 ] . inner_text else return "unknown" end end
extract and return the top-level (i.e., not inside another object type) geogname
extract and return the top - level ( i . e . not inside another object type ) geogname
doc
<not_specific>