Converts an scala.xml.PCData
to a Text
Converts an scala.xml.PCData
to a Text
Converts an scala.xml.Comment
to a Comment
Converts an scala.xml.Comment
to a Comment
Converts an scala.xml.Document
to a Document.
Converts an scala.xml.Document
to a Document. The resulting yaidom Document has no document URI.
Converts an scala.xml.Elem
to an Elem.
Converts an scala.xml.Elem
to an Elem.
Converts an scala.xml.EntityRef
to a EntityRef
Converts an scala.xml.EntityRef
to a EntityRef
Converts an scala.xml.Node
to an optional Node.
Converts an scala.xml.Node
to an optional Node.
Converts an scala.xml.ProcInstr
to a ProcessingInstruction
Converts an scala.xml.ProcInstr
to a ProcessingInstruction
Converts an scala.xml.Text
to a Text
Converts an scala.xml.Text
to a Text
Converts attributes, given as scala.xml.MetaData
, to an immutable.IndexedSeq[(QName, String)]
.
Converts attributes, given as scala.xml.MetaData
, to an immutable.IndexedSeq[(QName, String)]
.
Converts the scala.xml.NamespaceBinding
to a yaidom Scope
.
Converts the scala.xml.NamespaceBinding
to a yaidom Scope
.
This implementation is brittle because of bug: SI 6939: Namespace binding (xmlns) is duplicated if a child redefines a prefix. (see https://issues.scala-lang.org/browse/SI-6939 and https://github.com/scala/scala/pull/1858). Still, this implementation tries to work around that bug.
Extracts the QName
of an attribute as scala.xml.MetaData
.
Extracts the QName
of an attribute as scala.xml.MetaData
.
Extracts the QName
of an scala.xml.Elem
Extracts the QName
of an scala.xml.Elem
Conversions between yaidom nodes and Scala XML nodes, currently only in one direction, from Scala XML to yaidom.
These conversions are handy when one wants to use XML literals (as offered by standard Scala XML) in combination with yaidom.
Example usage: