Packages

  • package root
    Definition Classes
    root
  • package scala
    Definition Classes
    root
  • package xml
    Definition Classes
    scala
  • package pull

    Classes needed to view an XML document as a series of events.

    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("""1.0" encoding="UTF-8" standalone="yes"?>
    customvalue"?>
    BAR">
    ]>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(
    
    )
    Definition Classes
    xml
  • EvComment
  • EvElemEnd
  • EvElemStart
  • EvEntityRef
  • EvProcInstr
  • EvText
  • ProducerConsumerIterator
  • XMLEvent
  • XMLEventReader
c

scala.xml.pull

EvProcInstr

case class EvProcInstr(target: String, text: String) extends XMLEvent with Product with Serializable

A processing instruction was encountered.

target

the "PITarget" of the processing instruction. For the instruction <?foo bar="baz"?>, the target would be foo

text

the remainder of the instruction. For the instruction <?foo bar="baz"?>, the text would be bar="baz"

See also

http://www.w3.org/TR/REC-xml/#sec-pi

Linear Supertypes
Serializable, java.io.Serializable, Product, Equals, XMLEvent, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EvProcInstr
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. XMLEvent
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EvProcInstr(target: String, text: String)

    target

    the "PITarget" of the processing instruction. For the instruction <?foo bar="baz"?>, the target would be foo

    text

    the remainder of the instruction. For the instruction <?foo bar="baz"?>, the text would be bar="baz"

Value Members

  1. val target: String
  2. val text: String