public class DomWriter extends AbstractDocumentWriter
Constructor and Description |
---|
DomWriter(org.w3c.dom.Document document) |
DomWriter(org.w3c.dom.Document document,
XmlFriendlyReplacer replacer) |
DomWriter(org.w3c.dom.Element rootElement) |
DomWriter(org.w3c.dom.Element element,
org.w3c.dom.Document document,
XmlFriendlyReplacer replacer) |
DomWriter(org.w3c.dom.Element rootElement,
XmlFriendlyReplacer replacer) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(java.lang.String name,
java.lang.String value) |
protected java.lang.Object |
createNode(java.lang.String name)
Create a node.
|
void |
setValue(java.lang.String text)
Write the value (text content) of the current node.
|
close, endNode, endNodeInternally, flush, getCurrent, getTopLevelNodes, startNode
escapeXmlName, startNode, underlyingWriter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
underlyingWriter
public DomWriter(org.w3c.dom.Document document)
public DomWriter(org.w3c.dom.Element rootElement)
public DomWriter(org.w3c.dom.Document document, XmlFriendlyReplacer replacer)
public DomWriter(org.w3c.dom.Element element, org.w3c.dom.Document document, XmlFriendlyReplacer replacer)
public DomWriter(org.w3c.dom.Element rootElement, XmlFriendlyReplacer replacer)
protected java.lang.Object createNode(java.lang.String name)
AbstractDocumentWriter
AbstractDocumentWriter.getCurrent()
returns null
the node is a top level node.createNode
in class AbstractDocumentWriter
name
- the node namepublic void addAttribute(java.lang.String name, java.lang.String value)
public void setValue(java.lang.String text)
HierarchicalStreamWriter
Copyright © 2004-2012 XStream. All Rights Reserved.