Pimp container for the explicit conversions into Anti-XML types. Out of the
box, conversions are provided from scala.xml types. However, this mechanism
is very extensible due to the use of a typeclass (com.codecommit.antixml.XMLConvertable)
to represent the actual conversion. Thus, it is possible to add conversions
by defining an implicit instance of the typeclass and having it in scope. It
is even possible to override the built-in conversions for scala.xml types
simply by shadowing the conversions for types like scala.xml.Elem. The
built-in conversions are defined in such a way that Scala's implicit resolution
will give precedence to almost anything you define, as long as it is somehow
in scope.
Pimp container for the explicit conversions into Anti-XML types. Out of the box, conversions are provided from
scala.xml
types. However, this mechanism is very extensible due to the use of a typeclass (com.codecommit.antixml.XMLConvertable) to represent the actual conversion. Thus, it is possible to add conversions by defining an implicit instance of the typeclass and having it in scope. It is even possible to override the built-in conversions forscala.xml
types simply by shadowing the conversions for types like scala.xml.Elem. The built-in conversions are defined in such a way that Scala's implicit resolution will give precedence to almost anything you define, as long as it is somehow in scope.