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.

xml difference ignoring key/value pairs when there is a specific key

aschwin
aschwin Posts: 1
edited July 2019 in SOAtest

Hi all,

I am trying to do an xml comparison using the Diff tool, however this xml contains key/value pairs (RefType/RefInfo) where some of those values are dynamic while others are static.

Below is an example where I tried to use the Diff tool (xml). However the diff tool doesn't recognize the xpath expression I have provided. Regular xpath tools do recognize it (even the XML assertor in SOATest)

The xpath is:
/TransReqInfo/DebitInfo/BankAcctTrnRec/RefInfo[RefType='OrgSpecific']/RefId

The xml is:

Does anyone know how to deal with these type of Xpath's?

Kind regards,
Aschwin