Contains the built-in explicit conversions into Anti-XML. Currently, these
conversions only cover types in scala.xml. This may be expanded in future.
All of the members in this object are implicit, and thus it is rare for a user
to need to access them directly. The membership is contrived in such a way
that the implicit resolution will use the following precedence order:
ElemConvertable
TextConvertable
EntityRefConvertable
NodeConvertable
NodeSeqConvertable
This corresponds with the roughly-intuitive conversion precedence. Thus, if
we have a value of type scala.xml.Elem and we invoke the convert method on
that value, the result will be of type com.codecommit.antixml.Elem. However,
if we take that same value and ascribe it the type of scala.xml.Node,
the convert method will return a value of type com.codecommit.antixml.Node.
Finally, we can take this same value and ascribe it the even less-specific type
of scala.xml.NodeSeq (or even scala.Seq[scala.xml.Node], for
that matter). Invoking the convert method on this maximally-widened type will
produce a value of type com.codecommit.antixml.Group[com.codecommit.antixml.Node].
Thus, the most specific conversion is chosen in all cases.
Contains the built-in explicit conversions into Anti-XML. Currently, these conversions only cover types in
scala.xml
. This may be expanded in future.All of the members in this object are implicit, and thus it is rare for a user to need to access them directly. The membership is contrived in such a way that the implicit resolution will use the following precedence order:
ElemConvertable
TextConvertable
EntityRefConvertable
NodeConvertable
NodeSeqConvertable
This corresponds with the roughly-intuitive conversion precedence. Thus, if we have a value of type scala.xml.Elem and we invoke the
convert
method on that value, the result will be of type com.codecommit.antixml.Elem. However, if we take that same value and ascribe it the type of scala.xml.Node, theconvert
method will return a value of type com.codecommit.antixml.Node. Finally, we can take this same value and ascribe it the even less-specific type of scala.xml.NodeSeq (or even scala.Seq[
scala.xml.Node]
, for that matter). Invoking theconvert
method on this maximally-widened type will produce a value of type com.codecommit.antixml.Group[
com.codecommit.antixml.Node]
. Thus, the most specific conversion is chosen in all cases.