How do I parse an xml document as a stream using Scala?

后端 未结 2 1990
野的像风
野的像风 2020-12-14 08:51

How do I parse an xml document as a stream using Scala? I\'ve used the Stax API in java to accomplish this, but I\'d like to know if there is a \"scala\" way to do this.

2条回答
  •  悲哀的现实
    2020-12-14 09:35

    scala.xml.XML.loadFile(fileName: String)
    scala.xml.XML.load(url: URL)
    scala.xml.XML.load(reader: Reader)
    scala.xml.XML.load(stream: InputStream)
    

    There are others...

提交回复
热议问题