XML::SemanticCompare but did not figure out a way to display the output of diff method in xml form.
Here is a quote from the XML::SemanticCompare POD:
an array ref of strings representing the differences found between xml docs is returned. The strings look like XPATH statements but are not actual XPATH statements.
How does the diff output vary from your expectation? Show a small snippet of what you get vs. what you expect. If you are expecting the output to be in the form of XML tags, that doesn't seem to be supported, according to my interpretation of the POD. (By the way, I tried installing it, but I gave up due to dependency errors.)
XML::SemanticDiff is a little bit problematic when elements disordered
You could submit a bug report. It is best to create as small a testcase as possible to demonstrate the problem you are having.

In reply to Re: diff output of XML::SemanticCompare by toolic
in thread diff output of XML::SemanticCompare by gdanenb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.