# File lib/eml.rb, line 67 def initialize(metadata) if(metadata.class != REXML::Document || metadata.root.name != 'eml') raise ArgumentError, 'Must initialize with REXML::Document representation of EML metadata' else @doc = metadata @docid = @doc.root.attributes['packageId'] end end