Answering my own question, I wrote this. I think it should do what I
want:
def compactXml(node: Node): Node = node match {
case Elem(p, l, a, s, children @ _*) => Elem(p, l, a, s, children.map
(compactXml(_)) :_*)
case Text(data) => Text(data.trim)
case x => x
}
-harryh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to
liftweb@...
To unsubscribe from this group, send email to
liftweb+unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en-~----------~----~----~----~------~----~------~--~---