https://github.com/scala/scala/blob/v2.10.1/src/library/scala/xml/parsing/ConstructingParser.scala
源代码或文档都没有解释preserveWS
:
object ConstructingParser {
def fromFile(inp: File, preserveWS: Boolean) =
new ConstructingParser(Source.fromFile(inp), preserveWS).initialize
def fromSource(inp: Source, preserveWS: Boolean) =
new ConstructingParser(inp, preserveWS).initialize
}
有人知道这是什么意思吗?
谢谢。