Sha256: ba4c16c9630ceb27d352a515c295ccd11e6554381ec7b7add22022bbcaeff3ea

Contents?: true

Size: 405 Bytes

Versions: 18

Compression:

Stored size: 405 Bytes

Contents

require 'xampl-generated-code/all.rb'

Xampl.set_default_persister_kind(:filesystem)

Xampl.transaction('repo') do 
  simple = Simple.new('xxxxx')
  simple.new_thing
  simple.new_thing
  simple.new_thing
end

Xampl.transaction('repo2') do 
  filename = 'repo/repo/Simple/xxxxx'
  xml = File.open(filename).read
  puts xml

  x = XamplObject.from_xml_string(xml)
  puts "now have a #{ x.class.name }"
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
xamplr-1.9.20 regression/parsing-namespaced-xml/simple.rb
xamplr-1.9.18 regression/parsing-namespaced-xml/simple.rb
xamplr-1.9.16 regression/parsing-namespaced-xml/simple.rb
xamplr-1.9.15 regression/parsing-namespaced-xml/simple.rb
xamplr-1.9.14 regression/parsing-namespaced-xml/simple.rb
xamplr-1.9.13 regression/parsing-namespaced-xml/simple.rb
xamplr-1.9.12 regression/parsing-namespaced-xml/simple.rb
xamplr-1.9.11 regression/parsing-namespaced-xml/simple.rb
xamplr-1.9.10 regression/parsing-namespaced-xml/simple.rb
xamplr-1.9.9 regression/parsing-namespaced-xml/simple.rb
xamplr-1.9.8 regression/parsing-namespaced-xml/simple.rb
xamplr-1.9.7 regression/parsing-namespaced-xml/simple.rb
xamplr-1.9.6 regression/parsing-namespaced-xml/simple.rb
xamplr-1.9.5 regression/parsing-namespaced-xml/simple.rb
xamplr-1.9.4 regression/parsing-namespaced-xml/simple.rb
xamplr-1.9.3 regression/parsing-namespaced-xml/simple.rb
xamplr-1.9.2 regression/parsing-namespaced-xml/simple.rb
xamplr-1.9.1 regression/parsing-namespaced-xml/simple.rb