in scala.xml.parsing
class ConstructingParser

`class` ConstructingParser
  `extends` scala.xml.parsing.ConstructingHandler
  `with` scala.xml.parsing.ExternalSources
  `with` scala.xml.parsing.MarkupParser
  `with` scala.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: scala.io.Source, presWS: scala.Boolean)

Val Summary
| `val` input : scala.io.Source
| `val` preserveWS : scala.Boolean

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

Constructor Detail

`def` this (inp: scala.io.Source, presWS: scala.Boolean)

Val Detail

`val` input : scala.io.Source

`val` preserveWS : scala.Boolean

Def Detail

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