xml-merge(1) xml-utils xml-merge(1) NAME xml-merge - Merge XML files on a common element SYNOPSIS xml-merge [-fh?] DESCRIPTION The xml-merge utility merges two XML files together, based on a common element. OPTIONS -f, --overwrite Overwrite the file with the merged result, instead of writing to stdout. -h, -?, --help Show usage message. --version Show version information. The XML file which will be merged in to. The XML file which will me merged in to . The first oc‐ curence of an element in which matches the root element of this file is where the merge will occur. In addition, the following options allow configuration of the XML pars‐ er: --dtdload Load the external DTD. --huge Remove any internal arbitrary parser limits. --net Allow network access to load external DTD and entities. --noent Resolve entities. --xinclude Do XInclude processing. --xml-catalog Use an XML catalog when resolving entities. Multiple catalogs may be loaded by specifying this option multiple times. EXAMPLE Given the following two XML files: file1.xml: ... file2.xml: Hello world. the xml-merge utility will merge them on the element content: $ xml-merge file1.xml file2.xml > merged.xml to produce the merged file: merged.xml: ... Hello world. AUTHORS khzae.net. 2020-07-07 xml-merge(1)