| public List<E> getTopLevelNodes() Retrieve a 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
com.thoughtworks.xstream.XStream#marshal(Object, HierarchicalStreamWriter)
multiple times directly.
- Returns:List<E>
a List with top nodes
- Since
- 1.2.1
|