Skip to content

Commit

Permalink
quick hack to build without scala-xml
Browse files Browse the repository at this point in the history
  • Loading branch information
adriaanm committed Jul 8, 2013
1 parent d088394 commit 9bc0c11
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions core/src/standardtypes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,10 @@ trait StandardTypes extends CollectionTypes{
implicit lazy val UriFormat : Format[URI] = viaString(new URI(_ : String));


import scala.xml.{XML, Elem, NodeSeq};
implicit lazy val XmlFormat : Format[NodeSeq] = new Format[NodeSeq]{
def reads(in : Input) = XML.loadString(read[String](in)).child;
def writes(out : Output, elem : NodeSeq) = write(out, <binary>elem</binary>.toString);
}
// removed to quickly deal with scala-xml modularization
// import scala.xml.{XML, Elem, NodeSeq};
// implicit lazy val XmlFormat : Format[NodeSeq] = new Format[NodeSeq]{
// def reads(in : Input) = XML.loadString(read[String](in)).child;
// def writes(out : Output, elem : NodeSeq) = write(out, <binary>elem</binary>.toString);
// }
}

0 comments on commit 9bc0c11

Please sign in to comment.