Package org.dom4j.io
Interface ElementModifier
- 
public interface ElementModifierElementModifier defines a modifier ofElementobjects.
It can be used in the event basedSAXModifier, in order to modify elements on the fly, rather than waiting until the complete document is parsed. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ElementmodifyElement(Element element)Called by an event based processor when an elements closing tag is encountered. 
 - 
 
- 
- 
Method Detail
- 
modifyElement
Element modifyElement(Element element) throws Exception
Called by an event based processor when an elements closing tag is encountered. This method must return the modified version of the providedElementor null if it has to be removed from the document.
The incomingElementis disconnected from the DOM4J tree. This means that navigation to the elements parentElementandDocumentare not available. Only the element itself can be modified! 
 - 
 
 -