Skip to content

Latest commit

 

History

History
58 lines (51 loc) · 867 Bytes

README.md

File metadata and controls

58 lines (51 loc) · 867 Bytes

XmlMerger

An XML file merger, merges multiple files to one.

Usage

$ XmlMerger.exe . output.xml

or

$ XmlMerger.exe "C:\Long Path\To\XML-files" superoutput.xml 

Example

fileA.xml:

<?xml version="1.0"?>
<root>
  <entry>
    <Description>Test</Description>
    <Date>2019-05-17</Date>
  </entry>
</root>

fileB.xml:

<?xml version="1.0"?>
<root>
  <entry>
    <Description>Test</Description>
    <Date>2019-05-18</Date>
    <ExtraEntry>Content</ExtraEntry>
  </entry>
</root>

Merge 'em together.

$ XmlMerger.exe . output.xml

Creates output.xml:

<?xml version="1.0"?>
<root>
  <entry>
    <Description>Test</Description>
    <Date>2019-05-17</Date>
  </entry>
  <entry>
    <Description>Test</Description>
    <Date>2019-05-18</Date>
    <ExtraEntry>Content</ExtraEntry>
  </entry>
</root>