com.sun.xml.tree
Interface XmlWritable

All Known Subinterfaces:
DocumentEx, ElementEx, NodeEx
All Known Implementing Classes:
com.sun.xml.tree.NodeBase

public abstract interface XmlWritable

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


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 java.io.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.

writeChildrenXml

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


Submit Feedback to xml-feedback@java.sun.com
Copyright © 1998-1999 Sun Microsystems, Inc. All Rights Reserved.

Sun Microsystems, Inc.
901 San Antonio Road
Palo Alto, California, 94303, U.S.A.