All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.xml.pull.package.scala Maven / Gradle / Ivy

The newest version!
package scala
package xml

/**
 * Classes needed to view an XML document as a series of events.  The document
 * is parsed by an [[scala.xml.pull.XMLEventReader]] instance.  You can treat it as
 * an [[scala.collection.Iterator]] to retrieve the events, which are all
 * subclasses of [[scala.xml.pull.XMLEvent]].
 *
 * {{{
 * scala> val source = Source.fromString("""
 * 
 * 
 * ]>Hello&bar;>""")
 *
 * source: scala.io.Source = non-empty iterator
 *
 * scala> val reader = new XMLEventReader(source)
 * reader: scala.xml.pull.XMLEventReader = non-empty iterator
 *
 * scala> reader.foreach{ println(_) }
 * EvProcInstr(instruction,custom value="customvalue")
 * EvText(
 * )
 * EvElemStart(null,foo,,)
 * EvText(Hello)
 * EvComment( this is a comment )
 * EvElemStart(null,bar,,)
 * EvText(BAR)
 * EvElemEnd(null,bar)
 * EvElemStart(null,bar,,)
 * EvEntityRef(gt)
 * EvElemEnd(null,bar)
 * EvElemEnd(null,foo)
 * EvText(
 *
 * )
 *
 * }}}
 */
package object pull




© 2015 - 2024 Weber Informatics LLC | Privacy Policy