public class XmlCombiner extends Object
The merging algorithm is as follows:
First direct subelements of selected node are examined.
The elements from both trees with matching tag names and the value of 'id' attributes are paired.
Based on selected behavior the content of the paired elements is then merged.
Finally the paired elements are recursively combined. Any not paired elements are appended.
You can control merging behavior using 'combine.self'
and 'combine.children' attributes.
The merging algorithm was inspired by similar functionality in Plexus Utils.
| Constructor and Description |
|---|
XmlCombiner()
Creates XML combiner using default
DocumentBuilder. |
XmlCombiner(DocumentBuilder documentBuilder) |
public XmlCombiner() throws ParserConfigurationException
DocumentBuilder.ParserConfigurationException - when DocumentBuilder creation failspublic XmlCombiner(DocumentBuilder documentBuilder)
Copyright © 2014 Atteo. All rights reserved.