org.apache.crimson.tree
Interface XmlWritable

All Known Subinterfaces:
DocumentEx, ElementEx, NodeEx
All Known Implementing Classes:
AttributeSet, ElementNode2, NodeBase, XmlDocument

public interface XmlWritable

Objects that can write themselves as XML text do so using this interface.

Author:
David Brownell

Method Summary
 void writeChildrenXml(XmlWriteContext context)
          Used to write any children of a node.
 void writeXml(XmlWriteContext context)
          This is the primary method used to write an object and its children as XML text.
 

Method Detail

writeXml

public void writeXml(XmlWriteContext context)
              throws IOException
This is the primary method used to write an object and its children as XML text. Implementations with children should use writeChildrenXml to write those children, to allow selective overriding.

Throws:
IOException

writeChildrenXml

public void writeChildrenXml(XmlWriteContext context)
                      throws IOException
Used to write any children of a node.

Throws:
IOException