Skip to main content

XML File Diff

Overview

The XML File Diff feature lets you compare data across XML or other hierarchical files.
This is useful for validating structured exports, ETL processes, or migrations where nested tags matter.


How to Use SmartDiff XML File Diff

Step 1: Access SmartDiff

  • Select Smart Diff from the left panel
  • Click Workflow to view workflow history

Step 2: Create New File Diff Workflow

  • Click CREATE DIFF

Step 3: Select File Diff Option

  • Choose FILE DIFF (default is DATA SOURCE DIFF)
  • Enables diff operations for XML and other hierarchical files

Step 4: Upload Files

  • Upload two XML (or supported) files for comparison
  • Click Next

Step 5: Review Sample Data

  • Review XML tags in sample data
  • Customize headers, add/remove paths, etc.
  • Click Next

Step 6: Configure Path Mapping

  • Review the XPath list for both files
  • Adjust by dragging/removing paths
  • These mappings will be used for summary diff
  • Click Next

Step 7: View Results

Summary

Shows high-level count differences across selected XPaths:

  • ALL DATA: All mapped paths
  • ONLY DIFF: Only differing paths
  • BY SOURCE / BY TARGET: Frequency-based comparisons
  • Export Results: CSV/PDF

Data Diff

  • XML viewer highlights tag-level differences
  • Source-only values: Red
  • Target-only values: Green
  • Export Results: CSV/PDF