Converts a yaidom Comment to a Scala XML Comment.
Converts a yaidom Comment to a Scala XML Comment.
Converts a yaidom Elem to a Scala XML element, given a parent Scala XML scope.
Converts a yaidom Elem to a Scala XML element, given a parent Scala XML scope.
The parent NamespaceBinding is passed as extra parameter, in order to try to prevent the creation of any unnecessary namespace declarations.
Converts a yaidom Elem to a Scala XML element.
Converts a yaidom Elem to a Scala XML element.
Converts a yaidom EntityRef to a Scala XML EntityRef.
Converts a yaidom EntityRef to a Scala XML EntityRef.
Converts a yaidom node to a Scala XML node, given a parent Scala XML scope.
Converts a yaidom node to a Scala XML node, given a parent Scala XML scope.
The parent NamespaceBinding is passed as extra parameter, in order to try to prevent the creation of any unnecessary namespace declarations.
Converts a yaidom ProcessingInstruction to a Scala XML ProcInstr.
Converts a yaidom ProcessingInstruction to a Scala XML ProcInstr.
Converts a yaidom Text to a Scala XML Atom[String].
Converts a yaidom Text to a Scala XML Atom[String].
Converts an scala.xml.PCData to a eu.cdevreeze.yaidom.Text
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.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.
If the input Scala XML Document is not namespace-valid, an exception will be thrown.
Converts an scala.xml.Elem to an eu.cdevreeze.yaidom.Elem.
Converts an scala.xml.Elem to an eu.cdevreeze.yaidom.Elem.
If the input Scala XML Elem is not namespace-valid, an exception will be thrown.
Converts an scala.xml.EntityRef to a eu.cdevreeze.yaidom.EntityRef
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.Node to an optional eu.cdevreeze.yaidom.Node.
Converts an scala.xml.ProcInstr to a eu.cdevreeze.yaidom.ProcessingInstruction
Converts an scala.xml.ProcInstr to a eu.cdevreeze.yaidom.ProcessingInstruction
Converts an scala.xml.Text to a eu.cdevreeze.yaidom.Text
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 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.
These conversions are handy when one wants to use XML literals (as offered by standard Scala XML) in combination with yaidom.
Example usage:
See eu.cdevreeze.yaidom.convert.YaidomToScalaXmlConversions and in particular eu.cdevreeze.yaidom.convert.ScalaXmlToYaidomConversions for some pitfalls and peculiarities when using these conversions.