Class | MARC::XMLWriter |
In: |
lib/marc/xmlwriter.rb
|
Parent: | Object |
a static method that accepts a MARC::Record object and returns a REXML::Document for the XML serialization.
the constructor which you must pass a file path or an object that responds to a write message the second argument is a hash of options, currently only supporting one option, stylesheet
writer = XMLWriter.new ‘marc.xml’, :stylesheet => ‘style.xsl’ writer.write record