Как вы загружаете документ DOM HTML в Scala? Синтаксис XML имел ошибки при попытке загрузить теги xmlns.
import java.net._
import java.io._
import scala.xml._
object NetParse {
import java.net.{URLConnection, URL}
import scala.xml._
def netParse(sUrl: String): Elem = {
var url = new URL(sUrl)
var connect = url.openConnection
XML.load(connect.getInputStream)
}
}
Наконец, я нашел решение! - Требуется scala 2.7.7 или выше для работы (2.7.0 имеет фатальную ошибку): How-to-use-TagSoup-with-Scala-XML