Method: BioCReader.read_text

Defined in:
lib/simple_bioc/bioc_reader.rb

.read_text(xml, name) ⇒ Object



32
33
34
35
# File 'lib/simple_bioc/bioc_reader.rb', line 32

def read_text(xml, name)
  node = xml.at_xpath(name)
  node && node.content
end