Wrappers around scala.xml.Node and subclasses, such that the wrapper around scala.xml.Elem conforms to the
eu.cdevreeze.yaidom.queryapi.ElemApi API.
Use these wrappers only if there is a specific need for them, because these wrappers do have their costs (such as the creation
of lots of query result objects, the repeated costs of querying element/attribute names, the conceptual differences between
Scala XML and native yaidom nodes, etc.).
The wrappers are very light-weight, and typically very short-lived. On the other hand, each query may create many wrapper
instances for the query results. By design, the only state of each wrapper instance is the wrapped Scala XML node.
Wrappers around
scala.xml.Node
and subclasses, such that the wrapper aroundscala.xml.Elem
conforms to the eu.cdevreeze.yaidom.queryapi.ElemApi API.Use these wrappers only if there is a specific need for them, because these wrappers do have their costs (such as the creation of lots of query result objects, the repeated costs of querying element/attribute names, the conceptual differences between Scala XML and native yaidom nodes, etc.).
For some namespace-related pitfalls, see eu.cdevreeze.yaidom.scalaxml.ScalaXmlElem.
The wrappers are very light-weight, and typically very short-lived. On the other hand, each query may create many wrapper instances for the query results. By design, the only state of each wrapper instance is the wrapped Scala XML node.