Class: RelatonCalconnect::XMLParser
- Inherits:
-
RelatonIsoBib::XMLParser
- Object
- RelatonIsoBib::XMLParser
- RelatonCalconnect::XMLParser
- Defined in:
- lib/relaton_calconnect/xml_parser.rb
Class Method Summary collapse
Class Method Details
.from_xml(xml) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/relaton_calconnect/xml_parser.rb', line 4 def from_xml(xml) doc = Nokogiri::XML xml doc.remove_namespaces! cctitem = doc.at("/bibitem|/bibdata") if cctitem CcBibliographicItem.new(item_data(cctitem)) else warn "[relaton-calconnect] can't find bibitem or bibdata element in the XML" end end |