Sha256: 68d4c1d9bbec35fcd2a074f0c623e25a7d9a988f3e3348c6641b109592fe773c
Contents?: true
Size: 565 Bytes
Versions: 4
Compression:
Stored size: 565 Bytes
Contents
# puts "executing nokogiri_select.ctl" source :in, { :file => 'data/nokogiri.xml', :parser => :nokogiri_xml }, { :collection => 'people/person[@type="client"]', :fields => [ :first_name, :last_name, { :name => :ssn, :xpath => '@ssn' }, { :name => :age, :type => :integer }, { :name => :hair_colour, :xpath => 'colours/hair' } ] } destination :out, { :file => 'output/xml.txt' }, { :order => [:first_name, :last_name, :ssn] } transform :ssn, :sha1 transform(:ssn){ |v| v[0,24] }
Version data entries
4 entries across 4 versions & 3 rubygems