Skip to content

How to compare XDocument while ignoring the order of elements. #1925

Answered by dennisdoomen
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

BeEquivalentTo uses it own implementation instead of XNode.DeepEquals to verify equivalency. But since the order of elements in XML is significant, we decided to respect that aspect of XML.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected by jnyrup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant