Factory method that mimics the primary constructor, but has defaults for all parameters except the qname.
Factory method that mimics the primary constructor, but has defaults for all parameters except the qname.
Use this factory method with care, because it is easy to use incorrectly (regarding passed Scopes).
To construct Elem
s, prefer using an ElemBuilder
, via method NodeBuilder.elem
.
Converts any ClarkNodes.Elem
element to a "simple" Elem
, given a Scope needed for
computing QNames from ENames (of elements and attributes).
Converts any ClarkNodes.Elem
element to a "simple" Elem
, given a Scope needed for
computing QNames from ENames (of elements and attributes). The passed Scope must not contain the default namespace.
Preferably the passed Scope is invertible.
The resulting element has its attributes sorted on the name (QName), throughout the element tree.
Converts any ScopedNodes.Elem
element to a "simple" Elem
.
Extractor of Elems, to be used for pattern matching.