Compare two XML trees and report added, removed, changed, and type-changed paths.
Both documents are parsed into object trees, keys are compared recursively, arrays are matched by index, and primitive or type changes become path-based differences. Aggregate counts classify added, removed, and changed nodes.
Input1: <config> <host>localhost</host> <port>8080</port> <debug>true</debug> </config> Input2: <config> <host>production.example.com</host> <port>443</port> <ssl>true</ssl> </config>
Path Type Old value New value -------------- ------- --------- ---------------------- $/config/host changed localhost production.example.com $/config/port changed 8080 443 $/config/debug removed yes $/config/ssl added yes
SOAP regressions, configuration migrations, and XML fixture reviews compare structures.