Class ElementCloner


  • public class ElementCloner
    extends Object
    Utility class to create a clone of an Element.
    • Constructor Detail

      • ElementCloner

        public ElementCloner()
    • Method Detail

      • cloneElement

        public Element cloneElement​(Element element,
                                    Schema schema)
        Clone an Element, based on a target Schema.
        Parameters:
        element - the element to clone
        schema - the schema
        Returns:
        the cloned element