Diving Into DCP Files for XML Compare

What are the default settings in a DCP file?

An empty DCP file will have these settings by default.

  • Word by Word – Differences in all elements are resolved down to the word level
  • Whitespace Normalisation – Sequences of whitespace characters are normalised to a single space character
  • Table Processing – Elements conforming to the HTML and CALS specifications are recognised and processed specially to keep the output valid, provided the input is valid.
  • Comparison Order – The comparator matches elements based on their document order.
  • Change Gathering – When sibling elements or text in the comparison result file are a mix of added and deleted content, it is by default reordered to show all deleted content followed by all added content.

All of these settings and more can be tweaked by using special deltaxml attributes.  Full details can be found on Document Comparator Guide in the section on Customizing a comparison.

Understanding the DCP Schema File

w3schools provides a great introductory tutorial about XML Schemas. There are currently just two schema (XSD) files in XML Compare’s samples/dcp directory.   You can choose in the DCP file whether you want validation against XML schema 1.0 or 1.1 by including the appropriate file as explained in a comment at the start of the DCP file.  v1.1 has some additional constraints, improving your editing experience, and is preferred. However some editors that our customers use to change DCP files may not support schema 1.1. For example, with the oXygen XML Editor, versions from 14.2 onwards support scheme 1.1, see www.oxygenxml.com/xml_editor/whatisnew14.2.html

Choosing an Extension Point

In most cases you can put your filter in the INPUT_A_PRE_TABLE or the INPUT_B_PRE_TABLE extension points for the input pipelines or the OUTPUT_FINAL extension point for the output pipeline as required.

In more complex cases, where you want custom table processing or filters to adjust the formatting, then you need to refer to the JavaDoc or get DeltaXML support

Adding external filters to the DCP file

The Custom Filters section of the Document Comparator Guide, explains how to add XSLT filters to the pipeline, using a filter that creates a key from an xml:id attribute as an example

A Beginner’s Guide to XML Comparison

For more information about pipelines and the differences between DXP and DCP see here

For in-depth information about DXP start here.

The location of DXP/DCP files on a computer

Links to useful documentation

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.

Tackling Tracked Changes & Overcoming Hurdles in Managing Large Document Revisions

Managing large document revisions is challenging with tracked changes.

Effortlessly Manage Known Differences During Conversion Checks

Focus on unknown differences with DeltaXML's new ignore change feature for ConversionQA.

Mastering Complex Table Comparisons Within Your Technical Documentation

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

Enhanced Redline Output with Self-Hosted DITA Comparison via Integrated REST API

DITA Compare's powerful redline output and REST API integration is trusted globally.

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