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)
Same as toTreeRepr(emptyScope)
Returns the tree representation String, conforming to the tree representation DSL that creates NodeBuilders.
Returns the tree representation String, conforming to the tree representation DSL that creates NodeBuilders.
That is, it does not correspond to the tree representation DSL of Nodes, but of NodeBuilders!
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.
An entity reference. For example:
We obtain this entity reference as follows:
EntityRef("hello")