Returns XmlStringUtils.normalizeString(text)
.
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!
Same as toTreeRepr(emptyScope)
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.Returns text.trim
.
Returns a unique ID of the node.
Returns a unique ID of the node. It can be used to associate metadata such as ElemPath
s with elements, for example.
The UIDs would then be the Map keys, and the metadata the mapped values.
Be careful: if a node is "functionally updated", effectively creating a new node, the old UID still only refers to the old node before the "update".