{{Quickfixn}} Error in Ruby 1.9.3 in generating custom XML field
Manuel Lopez
lopez.post at gmail.com
Sun Dec 29 22:49:35 PST 2013
I tried adding a custom field ("ManualOrderIndicator") to my FIX44.xml
file but the ruby generator does not like it:
This is the line I added near the end of the xml file:
<field number="1028" name="ManualOrderIndicator" type="BOOLEAN" />
I also added the field to a couple of messages earlier in the file.
This is the error I get:
C:\Archive\QuickFixN\quickfixn-v1.5.0\source\quickfixn-master>ruby
generator\generate.rb
C:/Archive/QuickFixN/quickfixn-v1.5.0/source/quickfixn-master/generator/fix_dictionary.rb:94:in
`block in parse_element': field not found! ManualOrderIndicator
required= (RuntimeError)
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.1-x86-mingw32/lib/nokogiri/xml/node_set.rb:237:in
`block in each'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.1-x86-mingw32/lib/nokogiri/xml/node_set.rb:236:in
`upto'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.1-x86-mingw32/lib/nokogiri/xml/node_set.rb:236:in
`each'
from C:/Archive/QuickFixN/quickfixn-v1.5.0/source/quickfixn-master/generator/fix_dictionary.rb:86:in
`parse_element'
from C:/Archive/QuickFixN/quickfixn-v1.5.0/source/quickfixn-master/generator/fix_dictionary.rb:80:in
`new_msg'
from C:/Archive/QuickFixN/quickfixn-v1.5.0/source/quickfixn-master/generator/fix_dictionary.rb:62:in
`block in create_messages'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.1-x86-mingw32/lib/nokogiri/xml/node_set.rb:237:in
`block in each'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.1-x86-mingw32/lib/nokogiri/xml/node_set.rb:236:in
`upto'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.1-x86-mingw32/lib/nokogiri/xml/node_set.rb:236:in
`each'
from C:/Archive/QuickFixN/quickfixn-v1.5.0/source/quickfixn-master/generator/fix_dictionary.rb:62:in
`map'
from C:/Archive/QuickFixN/quickfixn-v1.5.0/source/quickfixn-master/generator/fix_dictionary.rb:62:in
`create_messages'
from C:/Archive/QuickFixN/quickfixn-v1.5.0/source/quickfixn-master/generator/fix_dictionary.rb:18:in
`parse'
from C:/Archive/QuickFixN/quickfixn-v1.5.0/source/quickfixn-master/generator/fix_dictionary.rb:7:in
`load'
from generator/generate.rb:24:in `initialize'
from generator/generate.rb:12:in `new'
from generator/generate.rb:12:in `generate'
from generator/generate.rb:119:in `<main>'
More information about the Quickfixn
mailing list