Eader
Parse EAD xml easily
Installation
Add this line to your application's Gemfile:
gem 'eader', '~> 0.0.3'
And then execute:
$ bundle
Usage
doc = Eader::Document.new('/path/or/url/to/file.xml')
doc.dsc_levels #=> [#<Nokogiri::XML::Element ...>, ...]
doc.items #=> [#<Eader::Item ...>, ...]
item = doc.items.first
item.unitid #=> 'MR-0002'
item.origination #=> 'N/A'
item.langmaterial #=> 'English'
item.unittitle #=> '5 empty loose CD jewel cases [sound recording]'
item.unitdate #=> 'Jan 15, 2001'
item.unitdate_type #=> 'inclusive'
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request