A comment was encountered
A comment was encountered
the text of the comment
An Element's end tag was encountered.
An Element's end tag was encountered.
prefix, if any, on the element. This is the xs
in <xs:string>foo</xs:string>
.
the name of the element, not including the prefix
An Element's start tag was encountered.
An Element's start tag was encountered.
prefix, if any, on the element. This is the xs
in <xs:string>foo</xs:string>
.
the name of the element, not including the prefix
any attributes on the element
An entity reference was encountered.
An entity reference was encountered.
the name of the entity, e.g. gt
when encountering the entity >
A processing instruction was encountered.
A processing instruction was encountered.
the "PITarget" of the processing instruction. For the instruction <?foo bar="baz"?>
, the target would
be foo
the remainder of the instruction. For the instruction <?foo bar="baz"?>
, the text would
be bar="baz"
A text node was encountered.
A text node was encountered.
the text that was found
An XML event for pull parsing.
An XML event for pull parsing. All events received during parsing will be one of the subclasses of this trait.
Main entry point into creating an event-based XML parser.
Main entry point into creating an event-based XML parser. Treating this as a scala.collection.Iterator will provide access to the generated 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.