xml2lua icon indicating copy to clipboard operation
xml2lua copied to clipboard

Test failure: acceptance_test_repeated_tags1_spec.lua:47: there should have an item with a 'something1' myattr value

Open manoelcampos opened this issue 4 years ago • 0 comments
trafficstars

The given table:

 tag = {
        array = {
            item = { _attr = { myattr = "something1" } },
            item = { _attr = { myattr = "something2" } },
        }
}

should be parsed as the following XML:

<tag>
  <array>
    <item myattr="something1"/>
    <item myattr="something2"/>
  </array>
</tag>

but only the last item tag is being generated in the final XML.

manoelcampos avatar Oct 15 '21 20:10 manoelcampos