Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indicate that certain XML element order is unimportant in comparison #17

Open
ronaldtse opened this issue Jul 14, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@ronaldtse
Copy link
Contributor

From:

There are a number of files that are currently skipped due to the serialization order being wrong, however, changing the order of those elements will cause more failures since the order in the test dataset is inconsistent.

I also don't know how to ignore element order comparison when it happens to be insignificant.

https://github.com/relaton/loc_mods/blob/110e14ea92eb4509bcd3badf01a78a5564c735b1/spec/loc_mods/collection_spec.rb#L12-L62

@ronaldtse ronaldtse added the enhancement New feature or request label Jul 14, 2024
@ronaldtse
Copy link
Contributor Author

There are a few types of ordering in XML:

  • sequence: an element <X> must follow <Y>
  • orderless sequence: <X> and <Y> can show up in any sequence.
  • collection: the same <X> element if there are multiple, they are ordered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant