Closed railsfactory-dhamodharan closed 12 years ago
So the tests run green - it seems you have an inconsistency between your declarations (which indicate that this attribute should have several values) and your data, which resolves down to a single string. If you provide your declarations and your source data, I can perhaps add this case to the test suite and handle it better.
Parameters passed to update_xml(xml, value) method as following:
Xml = #<Nokogiri::XML::Element:0x69ec4dc name="SalesRights">02#<Nokogiri::XML::Element:0x69ec4dc name="SalesRights" children=[#<Nokogiri::XML::Element:0x69ebd8e name="SalesRightsType" children=[#<Nokogiri::XML::Text:0x69eb690 "02">]>]>
value = ""
Can you be more clear about how you're using the library? Are you calling #update_xml directly? If so I'd like to understand why, it's not intended to be called directly.
Again, it seems there's an inconsistency between your declarations and the value you're supplying for the attribute. You're giving an empty string for the value, but the reference that you've declared is an array reference.
I apologize for wrong attribute, I have invoked from my customized Onix gem problem from my side.
roxml (3.3.1) lib/roxml/xml/references.rb:179:in
block in update_xml' roxml (3.3.1) lib/roxml/xml/references.rb:173:in
tap' roxml (3.3.1) lib/roxml/xml/references.rb:173:inupdate_xml' roxml (3.3.1) lib/roxml.rb:42:in
block (2 levels) in to_xml' roxml (3.3.1) lib/roxml.rb:39:ineach' roxml (3.3.1) lib/roxml.rb:39:in
block in to_xml' roxml (3.3.1) lib/roxml.rb:35:intap' roxml (3.3.1) lib/roxml.rb:35:in
to_xml' roxml (3.3.1) lib/roxml/xml/references.rb:295:inblock (2 levels) in update_xml' roxml (3.3.1) lib/roxml/xml/references.rb:294:in
each' roxml (3.3.1) lib/roxml/xml/references.rb:294:inblock in update_xml' roxml (3.3.1) lib/roxml/xml/references.rb:291:in
tap' roxml (3.3.1) lib/roxml/xml/references.rb:291:inupdate_xml' roxml (3.3.1) lib/roxml.rb:42:in
block (2 levels) in to_xml' roxml (3.3.1) lib/roxml.rb:39:ineach' roxml (3.3.1) lib/roxml.rb:39:in
block in to_xml' roxml (3.3.1) lib/roxml.rb:35:intap' roxml (3.3.1) lib/roxml.rb:35:in
to_xml'Need to upgrade as per latest ruby.