Thanks for the reply.
For my purposes, the order of elements does not matter. It is the contents of a snapshot of a directory (say), in a random order. The 'name' attribute is (say) the file name or a sub directory name (which contains its own elements).
I want to be able to compare two xml files describing a file system in this way, comparing all attributes and sub elements but using 'name' attribute as the primary key.
An element can be missing or added in either xml file, and I want to be able to flag it as such. Elements with the same 'name' attribute are to be compared for sub elements and attributes
I was hoping that getting them into a consistent ordering would help SemanticDiff cope with missing or new elements. But I think now I will have to write custom code that parses the XML to identify the elements that are new / missing between the two files, and uses SemanticDiff perhaps to compare just elements, not the whole document.
In reply to Re^2: Consistent xml formatting
by Haloric
in thread Consistent xml formatting
by Haloric
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |