lib/phonelib/data_importer_helper.rb
# get main body from parsed xml document
get main body from parsed xml document
get main body from parsed xml document
def main_from_xml(file)
      xml_data = File.read(file)
      xml_data.force_encoding('utf-8')
      doc = Nokogiri::XML(xml_data)
      doc.elements.first.elements.first
    end
def main_from_xml ( file ) xml_data = File . read ( file ) xml_data . force_encoding ( 'utf-8' ) doc = Nokogiri :: XML ( xml_data ) doc . elements . first . elements . first end
get main body from parsed xml document
get main body from parsed xml document
file
<not_specific>