# XML diff and merge

# Introduction

The extension is able to produce diffs of two XML documents and then to apply the difference to the source document. The diff is a XML document containing copy/insert/delete instruction nodes in human readable format. DOMDocument objects, local files and strings in memory can be processed.

- Installing/Configuring
  - Requirements
  - Installation
- XMLDiff\Base — The XMLDiff\Base class
  - XMLDiff\Base::__construct — Constructor
  - XMLDiff\Base::diff — Produce diff of two XML documents
  - XMLDiff\Base::merge — Produce new XML document based on diff
- XMLDiff\DOM — The XMLDiff\DOM class
  - XMLDiff\DOM::diff — Diff two DOMDocument objects
  - XMLDiff\DOM::merge — Produce merged DOMDocument
- XMLDiff\Memory — The XMLDiff\Memory class
  - XMLDiff\Memory::diff — Diff two XML documents
  - XMLDiff\Memory::merge — Produce merged XML document
- XMLDiff\File — The XMLDiff\File class
  - XMLDiff\File::diff — Diff two XML files
  - XMLDiff\File::merge — Produce merged XML document

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open