com.sun.xml.tree
Interface XmlWritable
- All Known Subinterfaces:
- DocumentEx, ElementEx, NamespaceScoped, 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.
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