Using Numeric Tolerances with XML Data Compare

XML is often used to represent engineering, scientific, or financial data where numeric values are important. Sometimes small changes in these values are not significant and you want to focus on the values that are. We’ll go through how you can indicate numeric tolerances with XML Data Compare.

Numeric Data

I used the magnetic field calculator from NOAA to determine the magnetic data for my location for two dates one month apart.  This is the result of the comparison:

Marking Insignificant Changes

You might decide that changes in the total intensity are only significant when greater than 5nt.  Adding these lines to the config file gives the result you want:

<dcf:location name="totalintensity-tolerance" xpath="//totalintensity">
  <dcf:numeric tolerance="5" use="A">
</dcf:numeric></dcf:location>

Per the attribute use=”A”, the result takes the value from the “A” file.

More Examples

See our web page Numeric Tolerances for a general discussion of this feature including more examples of element tolerances and using XPaths to identify numeric values.

There is a range of samples available on Bitbucket demonstrating various features of XML Data Compare.

Keep Reading

Move detection when comparing XML files

/
DeltaXML introduces an enhanced move detection feature that provides a clearer insight of how your content has changed.

Configuring XML Compare for Efficient XML Comparison

/
Define pipelines and fine-tune the comparison process with various configuration options for output format, parser features, and more.

A Beginner’s Guide to Comparing XML Files

/
With XML Compare, you receive more than just a basic comparison tool. Get started with the most intelligent XML Comparison software.

Introducing Character By Character Comparison

/
Find even the smallest differences in your documents with speed and precision with character by character comparison.

Everything Great About DeltaJSON

Accessible through an intuitive online GUI or REST API, DeltaJSON is the complete package for managing changing JSON data. Learn everything about makes DeltaJSON great.

Mastering Complex Table Comparisons Within Your Technical Documentation

Our software excels at presenting changes in complex tables and technical content.

Simplifying Your JSON Management Experience with DeltaJSON

DeltaJSON simplifies JSON data management with the introduction of an NPM package.

Navigating XML Change in Aviation

Discover how the aviation industry can effectively manage XML changes to ensure compliance and safety while enhancing operational excellence.

Never miss an update

Sign up to our newsletter and never miss an update on upcoming features or new products