Module MARC::NokogiriReader
In: lib/marc/xml_parsers.rb

NokogiriReader uses the Nokogiri SAX Parser to quickly read a MARCXML document. Because dynamically subclassing MARC::XMLReader is a little ugly, we need to recreate all of the SAX event methods from Nokogiri::XML::SAX::Document here rather than subclassing.

Methods

Public Class methods

Public Instance methods

Loop through the MARC records in the XML document

Sets our instance variables for SAX parsing in Nokogiri and parser

Returns our MARC::Record object to the each block.

[Validate]