public class W3CTraceDomHandlerextends jakarta.xml.bind.annotation.W3CDomHandler
An extension of W3CDomHandler to trace handler events:
create a new DOMResult holder, access the Element
instance or marshal the instance into a Source to regenerate
the XML sub-tree.
Once a portion of the XML is transformed to the DOMResult instance,
this method is called by the XML Binding provider to obtain the unmarshalled
Element representation.
Once a portion of the XML is transformed to the DOMResult instance,
this method is called by the XML Binding provider to obtain the unmarshalled
Element representation.
Specified by:
getElement in interface jakarta.xml.bind.annotation.DomHandler<Element,DOMResult>
Overrides:
getElement in class jakarta.xml.bind.annotation.W3CDomHandler
This method is called when a the XML Binding provider needs to marshal
the given Element instance to an XML representation. Typically,
the Source is a DOMSource that acts as a holder for a
transformation source Document Object Model (DOM) tree.
Specified by:
marshal in interface jakarta.xml.bind.annotation.DomHandler<Element,DOMResult>
Overrides:
marshal in class jakarta.xml.bind.annotation.W3CDomHandler