This is on M7:

scala> import
scala.xml.Elem
import scala.xml.Elem

scala> import
net.liftweb.json.JsonAST._
import net.liftweb.json.JsonAST._

scala> import
net.liftweb.json._
import net.liftweb.json._

scala> def go(e: Elem) = Printer.pretty(render(Xml.toJson
(e)))
go: (scala.xml.Elem)String

scala> <tips><group type="Nearby"><tip><id>10</id></tip></group></
tips>
res0: scala.xml.Elem = <tips><group type="Nearby"><tip><id>10</id></
tip></group></tips>

scala> go
(res0)
res1: String = { "tips":{ "group":{ "type":"Nearby", "tip":
{ "id":"10" } }, "type":"Nearby" } }

Note how "Nearby" appears twice in res1 but only once in res0

-harryh

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to