public interface DocumentWriter extends HierarchicalStreamWriter
HierarchicalStreamWriter
implementations generating a
DOM.Modifier and Type | Method and Description |
---|---|
List |
getTopLevelNodes()
Retrieve a
List with the top elements. |
addAttribute, close, endNode, flush, setValue, startNode, underlyingWriter
List getTopLevelNodes()
List
with the top elements. In the standard use case this list will
only contain a single element. Additional elements can only occur, if
HierarchicalStreamWriter.startNode(String)
of the implementing
HierarchicalStreamWriter
was called multiple times with an empty node stack. Such
a situation occurs calling
XStream.marshal(Object, HierarchicalStreamWriter)
multiple times directly.List
with top nodesCopyright © 2004–2017 XStream. All rights reserved.