in reply to Re^4: XML file difference highlights
in thread XML file difference highlights

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re^6: XML file difference highlights
by Corion (Patriarch) on Jun 14, 2017 at 14:09 UTC

    XPath expressions will not help you find the differences between two XML trees.

    At best you can iteratively probe the depth of the XML tree(s) using depth-limited XPath expressions like //[count(ancestor::*)=$depth] and look at whether you get a different number of nodes returned. Whether that produces a meaningful difference or not depends on the actual needs, which seem to be more along the line of a textual diff instead of a structural diff to me.

    If you are making these suggestions in earnest, please also include code or concrete applications in pseudo-code, instead of "scare quotes" around verbs to suggest that you are talking about programming. Leaving it to the seekers to interpret your posts in a helpful way does not in fact help them achieve their goals.

      "If you are making these suggestions in earnest, please also include code or concrete applications in pseudo-code, instead of "scare quotes" around verbs to suggest that you are talking about programming. Leaving it to the seekers to interpret your posts in a helpful way does not in fact help them achieve their goals."

      Well put!

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^6: XML file difference highlights
by Anonymous Monk on Jun 14, 2017 at 17:09 UTC
    'So, don’t stumble and don’t guess ... Ask.', and here you are, full of assumptions (that you know what you're talking about) and lies. More proof that you don't know Jack, about anything
    A reply falls below the community's threshold of quality. You may see it by logging in.