in scala/xml/parsing
class DefaultMarkupHandler
-
abstract class DefaultMarkupHandler()
- extends MarkupHandler
- with ScalaObject
-
default implemenation of markup handler always returns NodeSeq.Empty
Method Summary
|
|
def comment(pos: Int, comment: String): NodeSeq
callback method invoked by MarkupParser after parsing comment.
|
|
def elem(pos: Int, pre: String, label: String, attrs: MetaData, scope: NamespaceBinding, args: NodeSeq): NodeSeq
callback method invoked by MarkupParser after parsing an elementm,
between the elemStart and elemEnd callbacks
|
|
def entityRef(pos: Int, n: String): NodeSeq
callback method invoked by MarkupParser after parsing entity ref.
|
|
def procInstr(pos: Int, target: String, txt: String): NodeSeq
callback method invoked by MarkupParser after parsing PI.
|
|
def text(pos: Int, txt: String): NodeSeq
callback method invoked by MarkupParser after parsing text.
|
Methods inherited from java/lang/Object-class
|
clone, eq, equals, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, toString, wait, wait, wait |
Methods inherited from scala/xml/parsing/MarkupHandler-class
|
attListDecl, decls, elemDecl, elemEnd, elemStart, endDTD, ent, isValidating, lookupElemDecl, notationDecl, parameterEntityDecl, parsedEntityDecl, peReference, replacementText, reportSyntaxError, unparsedEntityDecl |
elem
def elem(pos: Int, pre: String, label: String, attrs: MetaData, scope: NamespaceBinding, args: NodeSeq): NodeSeq
-
callback method invoked by MarkupParser after parsing an elementm,
between the elemStart and elemEnd callbacks
- Parameters:
pos
-
the position in the sourcefile
pre
-
the prefix
label
-
the local name
attrs
-
the attributes (metadata)
args
-
the children of this element
procInstr
def procInstr(pos: Int, target: String, txt: String): NodeSeq
-
callback method invoked by MarkupParser after parsing PI.
comment
def comment(pos: Int, comment: String): NodeSeq
-
callback method invoked by MarkupParser after parsing comment.
entityRef
def entityRef(pos: Int, n: String): NodeSeq
-
callback method invoked by MarkupParser after parsing entity ref.
- Todo:
- expanding entity references
text
def text(pos: Int, txt: String): NodeSeq
-
callback method invoked by MarkupParser after parsing text.