Tutorial by Examples

The PrettyPrinter utility will 'pretty print' XML documents. The following code snippet pretty prints unformatted xml: import scala.xml.{PrettyPrinter, XML} val xml = XML.loadString("<a>Alana<b><c>Beth</c><d>Catie</d></b></a>") val formatt...

Page 1 of 1