Scala 2

API Specification

This document is the API specification for Scala 2.

Class Summary
case class ElemEnd

case class ElemStart

class XMLEventReader
a pull parser that offers to view an XML document as a series of events. Please note that this API might change. Here's how to use this class
import scala.xml._
import scala.xml.pull._
import scala.io.Source
object reader {
  val src = Source.fromString("")
  val er = new XMLEventReader().initialize(src)
  
  def main(args:Array[String]): unit = {
    Console.println(er.next)
    Console.println(er.next)
  }
}


Trait Summary
abstract trait XMLEvent
represents an XMLEvent for pull parsing