package
resolved
Type Members
-
-
sealed
trait
Node extends Immutable
-
final
case class
Text(text: String) extends Node with Product with Serializable
Value Members
-
object
Elem extends Serializable
-
-
object
Text extends Serializable
Inherited from AnyRef
Inherited from Any
This package contains element representations that can be compared for (some notion of "value") equality, unlike normal yaidom nodes. That notion of equality is simple to understand, but "naive". The user is of the API must take control over what is compared for equality.
See eu.cdevreeze.yaidom.resolved.Node for why this package is named
resolved
.The most important difference with normal
Elem
s is that qualified names do not occur, but only expanded (element and attribute) names. This reminds of James Clark notation for XML trees and expanded names, where qualified names are absent.Moreover, the only nodes in this package are element and text nodes.
Below follows a simple example query, using the uniform query API:
The query for Scala book authors would have been exactly the same if normal
Elem
s had been used instead ofresolved.Elem
s (replacingresolvedBookstoreElem
bybookstoreElem
)!