Wrapper around a Scala XML Atom that is not Text or PCData
Wrapper around a scala.xml.Document
.
Wrapper around scala.xml.Elem
, conforming to the eu.cdevreeze.yaidom.queryapi.ElemApi API.
Wrapper around scala.xml.Elem
, conforming to the eu.cdevreeze.yaidom.queryapi.ElemApi API.
See the documentation of the mixed-in query API trait(s) for more details on the uniform query API offered by this class.
Keep in mind that the HasENameApi
specific part of the API is a broken abstraction. If the wrapped Scala XML element
misses some namespace declarations for used element or attribute names, these element and/or attribute names
cannot be resolved, and exceptions are thrown when querying for them! The ElemApi
part of the API does not
suffer from this broken abstraction, so is less dangerous to use.
The wrapper instances 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 Elem.
Wrappers around scala.xml.Node
and subclasses, such that the wrapper around scala.xml.Elem
conforms to the
eu.cdevreeze.yaidom.queryapi.ElemApi API.
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.).
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.
Wrapper around class
scala.xml.Elem
, adapting it to the eu.cdevreeze.yaidom.queryapi.ElemLike API.This wrapper brings the uniform yaidom query API to Scala XML literals (and Scala XML Elems in general).
For some namespace-related pitfalls and peculiarities, see eu.cdevreeze.yaidom.scalaxml.ScalaXmlElem.