Class XMLWriter

java.lang.Object
org.eclnt.util.valuemgmt.XMLWriter

public class XMLWriter extends Object
Writes an XML content to a writer. There are two modes:

(1) Passing ComponentDump as null parameter: in this case the output is written into the writer. Just as expected.

(2) Passing the ComponentDUmp: in this case the output is written into the component dump, which itself maintains a hierarchy of XMLNode objects. Background: the PAGEADDON component at the end sends the XMLNode hierarchy to the XMLWriter. It does certain optimizations hers, e.g. areas in which there is no change of data are only transferred to be "not changed" - without sending all the contained components of the areas.

It is crucial that writing components in case of using ComponentDump must understand the principle of signalizing changes. Changes are to be registerrd in the following way:
(a) setting of attributes ==> implicitly the change is registered
(b) specifying new nodes to be new (c) explicitly calling the writer_writeChangedMarker method. This method e.g. needs to be called if any subcomponents of a components have been removed. See implementation of BaseComponent.