title: Scala and HTML parsing
body: <p>How do you load an HTML DOM document into Scala? The XML singleton had errors when trying to load the xmlns tags.</p>
  
  <pre><code>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)
     }
  }
  </code></pre>
  
  <hr>
  
  <p>Finally I found a solution! - Requires scala 2.7.7 or higher to work (2.7.0 has a fatal bug):
  <a href="http://old.nabble.com/How-to-use-TagSoup-with-Scala-XML--td17575225.html" rel="nofollow noreferrer">How-to-use-TagSoup-with-Scala-XML</a></p>