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

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.

File Formats and ConversionQA Functionality

ConversionQA is a tool by DeltaXML ensuring the success of content conversion projects by comparing content from any two XML formats.

Introducing ConversionQA

ConversionQA is introduced as a solution to comparing content across different XML formats, addressing scenarios like content conversion and restructuring documents.

Making Tax Digital: Embracing XML Technology for HMRC Compliance

The Making Tax Digital (MTD) initiative by HMRC aims to digitise the UK tax system, but what does that mean for UK businesses?

Best Practices for Managing XML Configurations in System Administration

Effective management of XML configurations is crucial for system administrators.

The Crucial Role of XML and JSON in Modern Air Traffic Control Operations

XML and JSON play a crucial role in modern air traffic control, facilitating efficient systems.