JS Merge XML

Merge XML documents from strings or DOM objects in Javascript

JS MergeXML class

The class  allows to merge multiple XML sources (files, strings, objects) into single DOM XML JavaScript object. The merging is performed on the node level adding new elements and replacing existing ones.

The nodes with the same path/name are replaced/added sequentially and the modification can be controlled by the options.

MergeXML could be useful in cases where it is necessary to gather XML data from multiple sources. For example, to join the configuration files of different subsystems depending on the system operation.

The package

The following files are included:

  1. mergexml.js - the MergeXML class; supports IE, Firefox, Safari, Chrome, Opera;
  2. example.html - multi-selects the xml files and displays result;
  3. example.js - passes the xml data and returns result; requires HTML5;
  4. test1.xml, test2.xml - test data for the example;
  5. readme.md.

The MergeXML is realized also in PHP.

MIT license

The MIT license is an open-source license.

FREE Download

10 day 10-day money-back guarantee

Need custom services for this product? Get a quote