in scala.xml.parsing
class ConstructingParser

class ConstructingParser
extends ConstructingHandler
with ExternalSources
with MarkupParser
with ScalaObject
an xml parser. parses XML and invokes callback methods of a MarkupHandler. Don't forget to call next.ch on a freshly instantiated parser in order to initialize it. If you get the parser from the object method, initialization is already done for you.
object parseFromURL {
  def main(args:Array[String]): Unit = {
    val url = args(0);
    val src = scala.io.Source.fromURL(url);
    val cpa = scala.xml.parsing.ConstructingParser.fromSource(src, false); // fromSource initializes automatically
    val doc = cpa.document();

    // let's see what it is
    val ppr = new scala.xml.PrettyPrinter(80,5);
    val ele = doc.docElem;
    Console.println("finished parsing");
    val out = ppr.format(ele);
    Console.println(out);
  }
}

Constructor Summary
def this ( inp : Source , presWS : scala.Boolean )



Def Summary
override def log ( msg : java.lang.String ) : scala.Unit



Constructor Detail
def this ( inp : Source , presWS : scala.Boolean )

Def Detail
override def log ( msg : java.lang.String ) : scala.Unit