Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

how to compare 2 XML files

Options
Chinnu
Chinnu Posts: 18

Both XMS are request and can be fetched from database as well. I want to compare these 2 in SOA test

Answers

  • benken_parasoft
    benken_parasoft Posts: 1,235 ✭✭✭
    Options

    The Diff tool is what you use to compare two documents. In this case, you would select "XML" in the "Diff Mode" box.

  • Chinnu
    Chinnu Posts: 18
    Options

    Thank you ,
    But where would I give the XML1 to be compared with XML2?

  • Chinnu
    Chinnu Posts: 18
    Options

    Example:
    Under Diff mode -> I select XML
    Under Regression Control Source ->Editor
    Under Ignored Differences-> Do I need to add anything?

  • benken_parasoft
    benken_parasoft Posts: 1,235 ✭✭✭
    Options

    The Diff tool has an Input and a Control Source. You choose one document under Input and the other document under Control Source. You will see an Input tab if you add the Diff tool as a test. If your Diff tool is chained to the output of another tool, then the Input is whatever document is passed along that output.

    Under Ignored Differences-> Do I need to add anything?

    What differences you chose to ignore is entirely up to you.

  • Chinnu
    Chinnu Posts: 18
    Options

    Oh i see, I will try , Thanks a lot

  • Chinnu
    Chinnu Posts: 18
    edited August 2022
    Options

    That actually didnt work