Converts an scala.xml.PCData
to a eu.cdevreeze.yaidom.Text
Converts an scala.xml.Comment
to a eu.cdevreeze.yaidom.Comment
Converts an scala.xml.Document
to a eu.cdevreeze.yaidom.Document.
Converts an scala.xml.Document
to a eu.cdevreeze.yaidom.Document. The resulting yaidom Document has no document URI.
Converts an scala.xml.Elem
to an eu.cdevreeze.yaidom.Elem.
Converts an scala.xml.Elem
to an eu.cdevreeze.yaidom.Elem.
Converts an scala.xml.EntityRef
to a eu.cdevreeze.yaidom.EntityRef
Converts an scala.xml.Node
to an optional eu.cdevreeze.yaidom.Node.
Converts an scala.xml.ProcInstr
to a eu.cdevreeze.yaidom.ProcessingInstruction
Converts an scala.xml.Text
to a eu.cdevreeze.yaidom.Text
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 scala.xml.Elem
Converter from Scala XML nodes to yaidom nodes, in particular from
scala.xml.Elem
to eu.cdevreeze.yaidom.Elem and fromscala.xml.Document
to eu.cdevreeze.yaidom.Document.This converter is handy when one wants to use XML literals (as offered by standard Scala XML) in combination with yaidom.