{{Quickfixn}} Error in Ruby 1.9.3 in generating custom XML field
Olamide Olatunji
krazibit312 at gmail.com
Sun Dec 29 23:10:40 PST 2013
<field number="1028" name="ManualOrderIndicator" type="BOOLEAN" />
'name' element should be 'description' check other fields and see how they are constructed.
Best Regards
Ola
Manuel Lopez <lopez.post at gmail.com> wrote:
>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>'
>_______________________________________________
>Quickfixn mailing list
>Quickfixn at lists.quickfixn.com
>http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
More information about the Quickfixn
mailing list