example/parse.rb in X12-0.1.0 vs example/parse.rb in X12-1.1.0
- old
+ new
@@ -23,10 +23,10 @@
#
require 'x12'
# Read message definition and create an actual parser
# by compiling .d12 file
-parser = X12::Parser.new('misc/997.d12')
+parser = X12::Parser.new('misc/997single.xml')
# Define a test message to parse
m997='ST*997*2878~AK1*HS*293328532~AK2*270*307272179~'\
'AK3*NM1*8*L1010_0*8~AK4*0:0*66*1~AK4*0:1*66*1~AK4*0:2*'\
'66*1~AK3*NM1*8*L1010_1*8~AK4*1:0*66*1~AK4*1:1*66*1~AK3*'\