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

Managing Risk in Legal Documentation

/
Proactively addressing compliance, accuracy, and security risks in legal documentation is essential to protect from costly errors.

Ensuring Accuracy in Legal Documentation

/
Efficient document comparison and merging can drastically improve accuracy, collaboration, and compliance for legal teams.

Introducing HTML Compare

/
HTML Compare is your go-to for tracking, comparing, and managing HTML content changes with ease, offering clear visual highlights and customisable settings.

Introducing Subtree Processing Mode for Greater Flexibility

/
A new feature that lets you control how content is compared by processing sections as either text or data.

Beyond Step-Through XSLT Debugging

/
Print-debugging in XSLT provides a broader view of code behaviour by capturing variable values at multiple points.

Solving Common Challenges with Inaccurate Document Management

Discover practical strategies to overcome common challenges in regulated industries.

How to avoid non-compliance when updating technical documents in regulated industries

Navigate the challenges of updating technical documents in regulated industries.

Built-in XML Comparison vs Document Management Systems (DMS)

Compare using specialised XML comparison software versus a DMS in regulated industries.

How Move Detection Improves Document Management

Learn how move detection technology improves document management by accurately tracking relocated content.