Structured document processor implemented in Scala.