ConstructingHandler

scala.xml.parsing.ConstructingHandler
abstract class ConstructingHandler extends MarkupHandler

Implementation of MarkupHandler that constructs nodes.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

override def comment(pos: Int, txt: String): Comment

callback method invoked by MarkupParser after parsing comment.

callback method invoked by MarkupParser after parsing comment.

Attributes

Definition Classes
override def elem(pos: Int, pre: String, label: String, attrs: MetaData, pscope: NamespaceBinding, empty: Boolean, nodes: NodeSeq): NodeSeq

callback method invoked by MarkupParser after parsing an element, between the elemStart and elemEnd callbacks

callback method invoked by MarkupParser after parsing an element, between the elemStart and elemEnd callbacks

Value parameters

args

the children of this element

attrs

the attributes (metadata)

empty

true if the element was previously empty; false otherwise.

label

the local name

pos

the position in the source file

pre

the prefix

Attributes

Definition Classes
override def entityRef(pos: Int, n: String): EntityRef

callback method invoked by MarkupParser after parsing entity ref.

callback method invoked by MarkupParser after parsing entity ref.

Attributes

Todo

expanding entity references

Definition Classes
override def procInstr(pos: Int, target: String, txt: String): ProcInstr

callback method invoked by MarkupParser after parsing PI.

callback method invoked by MarkupParser after parsing PI.

Attributes

Definition Classes
override def text(pos: Int, txt: String): Text

callback method invoked by MarkupParser after parsing text.

callback method invoked by MarkupParser after parsing text.

Attributes

Definition Classes

Inherited methods

def attListDecl(name: String, attList: List[AttrDecl]): Unit

Attributes

Inherited from:
MarkupHandler
def elemDecl(n: String, cmstr: String): Unit

Attributes

Inherited from:
MarkupHandler
def elemEnd(pos: Int, pre: String, label: String): Unit

callback method invoked by MarkupParser after end-tag of element.

callback method invoked by MarkupParser after end-tag of element.

Value parameters

label

the local name

pos

the position in the source file

pre

the prefix

Attributes

Inherited from:
MarkupHandler
def elemStart(pos: Int, pre: String, label: String, attrs: MetaData, scope: NamespaceBinding): Unit

callback method invoked by MarkupParser after start-tag of element.

callback method invoked by MarkupParser after start-tag of element.

Value parameters

attrs

the attributes (metadata)

label

the local name

pos

the position in the sourcefile

pre

the prefix

Attributes

Inherited from:
MarkupHandler
def endDTD(n: String): Unit

Attributes

Inherited from:
MarkupHandler

Attributes

Inherited from:
MarkupHandler
def notationDecl(notat: String, extID: ExternalID): Unit

Attributes

Inherited from:
MarkupHandler

Attributes

Inherited from:
MarkupHandler
def parsedEntityDecl(name: String, edef: EntityDef): Unit

Attributes

Inherited from:
MarkupHandler
def peReference(name: String): Unit

Attributes

Inherited from:
MarkupHandler
def replacementText(entityName: String): Source

Attributes

Inherited from:
MarkupHandler
def reportSyntaxError(pos: Int, str: String): Unit

Attributes

Inherited from:
MarkupHandler
def unparsedEntityDecl(name: String, extID: ExternalID, notat: String): Unit

Attributes

Inherited from:
MarkupHandler

Abstract fields

Inherited fields

var decls: List[Decl]

Attributes

Inherited from:
MarkupHandler

Attributes

Inherited from:
MarkupHandler

returns true is this markup handler is validating

returns true is this markup handler is validating

Attributes

Inherited from:
MarkupHandler