Vote count:
0
I'm writing a tool to compare the structure of two XML files using XML Diff library. Is it possible to ignore the difference between XML elements' values when using XML Diff tool, just like ignoring XML elements order (XmlDiffOptions.IgnoreChildOrder), namespace (XmlDiffOptions.IgnoreNamespaces) etc.
E.g. File 1:
<ns1:Subaru model="Outback">
<ns1:Muffler> 500 </ns1:Muffler>
<ns1:Bumper> 150 </ns1:Bumper>
<ns1:Floormat> 75 </ns1:Floormat>
<ns1:WindShieldWipers> 20 </ns1:WindShieldWipers>
</ns1:Subaru>
File 2:
<ns2:Subaru model="Outback">
<ns2:Muffler> 600 </ns2:Muffler>
<ns2:Bumper> 150 </ns2:Bumper>
<ns2:WindShieldWipers> 25 </ns2:WindShieldWipers>
</ns2:Subaru>
In this case, the only difference in the output should be the removed element Floormat ( ). Is there any option to ignore the element's value. Thanks.
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire