Returns the tree representation string corresponding to this element, that is, toTreeRepr
.
Returns the tree representation string corresponding to this element, that is, toTreeRepr
.
Possibly expensive, especially for large XML trees! Note that the toString
method is often called implicitly,
for example in logging statements. So, if the toString
method is not used carefully, OutOfMemoryErrors may occur.
Same as toTreeRepr(emptyScope)
Returns the tree representation String, conforming to the tree representation DSL that creates NodeBuilder
s.
Returns the tree representation String, conforming to the tree representation DSL that creates NodeBuilder
s.
That is, it does not correspond to the tree representation DSL of Node
s, but of NodeBuilder
s!
There are a couple of advantages of this method compared to some "toXmlString" method which returns the XML string:
toTreeRepr
clearly corresponds to a NodeBuilder
, and can indeed be parsed into onetoTreeRepr
output is even valid Scala codeNodeBuilder
, the following is out of scope: character escaping (for XML), entity resolving,
"ignorable" whitespace handling, etc.
Immutable XML Node. It is the default XML node type in yaidom. There are subclasses for different types of nodes, such as elements, text nodes, comments, entity references and processing instructions. See eu.cdevreeze.yaidom.simple.Elem for the default element type in yaidom.