Open ronaldtse opened 3 months ago
@ronaldtse Is this same as https://github.com/lutaml/lutaml-model/pull/19? or is there something else needed to be done in this ticket?
Yes, in some XML objects (depending on our implementation of course) the element order doesn't matter, e.g.
e.g. https://github.com/relaton/loc_mods/blob/main/spec/fixtures/allrecords-MODS-991000030349708106.xml
<subject authority="lcsh" xlink:href="https://id.loc.gov/authorities/names/n78095330-781">
<topic>Mollusks</topic>
<topic>Effect of water pollution on</topic>
<geographic>United States</geographic>
</subject>
vs
<subject authority="lcsh" xlink:href="https://id.loc.gov/authorities/names/n78095330-781">
<geographic>United States</geographic>
<topic>Mollusks</topic>
<topic>Effect of water pollution on</topic>
</subject>
In some XML elements, the order of inner elements matter. We need to support both modes.
Implemented by @HassanAkbar at: