This is a class-oriented Ruby library that parses LOC’s MOD data.
This gem is developed using the MODS 3.7 XSD schema.
require 'loc_mods'
# Single record under `<modsCollection>`
LocMods::Collection.from_xml(File.read("spec/fixtures/record_1.xml"))
# Full NIST Tech Pubs records
# https://github.com/usnistgov/NIST-Tech-Pubs/tree/nist-pages/xml
LocMods::Collection.from_xml(File.read("reference/allrecords-MODS.xml"))