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
}
有人知道这意味着什么吗?
感谢。
答案 0 :(得分:1)