mardi 5 mai 2015

extract info out of XML tag - RUBY

I have an xml tag like this

    <cvParam cvRef="MS" accession="MS:1000511" name="ms level" value="1"/>

How can i get the value of ms level (1)? Please, don't suggest nokogiri or rexml. I want to learn how I can parse info out while I read the file, line by line. Thank you.

Aucun commentaire:

Enregistrer un commentaire