Class: RelatonNist::XMLParser
- Inherits:
-
RelatonBib::XMLParser
- Object
- RelatonBib::XMLParser
- RelatonNist::XMLParser
- Defined in:
- lib/relaton_nist/xml_parser.rb
Class Method Summary collapse
Class Method Details
.from_xml(xml) ⇒ Object
4 5 6 7 8 |
# File 'lib/relaton_nist/xml_parser.rb', line 4 def from_xml(xml) doc = Nokogiri::XML xml nistitem = doc.at("/bibitem|/bibdata") NistBibliographicItem.new(item_data(nistitem)) end |