MarkupHandler

scala.xml.parsing.MarkupHandler
abstract class MarkupHandler

class that handles markup - provides callback methods to MarkupParser. the default is nonvalidating behaviour

Attributes

Todo

can we ignore more entity declarations (i.e. those with extIDs)?

expanding entity references

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def comment(pos: Int, comment: String): NodeSeq

callback method invoked by MarkupParser after parsing comment.

callback method invoked by MarkupParser after parsing comment.

Attributes

def elem(pos: Int, pre: String, label: String, attrs: MetaData, scope: NamespaceBinding, empty: Boolean, args: 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

def entityRef(pos: Int, n: String): NodeSeq

callback method invoked by MarkupParser after parsing entity ref.

callback method invoked by MarkupParser after parsing entity ref.

Attributes

Todo

expanding entity references

def procInstr(pos: Int, target: String, txt: String): NodeSeq

callback method invoked by MarkupParser after parsing PI.

callback method invoked by MarkupParser after parsing PI.

Attributes

def reportSyntaxError(pos: Int, str: String): Unit
def text(pos: Int, txt: String): NodeSeq

callback method invoked by MarkupParser after parsing text.

callback method invoked by MarkupParser after parsing text.

Attributes

Concrete methods

def attListDecl(name: String, attList: List[AttrDecl]): Unit
def elemDecl(n: String, cmstr: String): Unit
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

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

def endDTD(n: String): Unit
def notationDecl(notat: String, extID: ExternalID): Unit
def parsedEntityDecl(name: String, edef: EntityDef): Unit
def peReference(name: String): Unit
def replacementText(entityName: String): Source
def unparsedEntityDecl(name: String, extID: ExternalID, notat: String): Unit

Concrete fields

var decls: List[Decl]

returns true is this markup handler is validating

returns true is this markup handler is validating

Attributes