Scala日記

Scalaの備忘録。ときどき研究の話。

xmlファイルをstdinから読み込む

import scala.xml.parsing.ConstructingParser

val doc = ConstructingParser.fromSource(Source.stdin, preserveWS = true).document()