diff options
author | buraq <buraq@epfl.ch> | 2005-05-05 23:25:48 +0000 |
---|---|---|
committer | buraq <buraq@epfl.ch> | 2005-05-05 23:25:48 +0000 |
commit | 2e5c8d22e443c80490667a62c943aa51b0e34de4 (patch) | |
tree | c93b022a05a6add4e6777f69b5426607b9bdf54d | |
parent | 5a665f06544312903e53b9524e844235b871bd08 (diff) | |
download | scala-2e5c8d22e443c80490667a62c943aa51b0e34de4.tar.gz scala-2e5c8d22e443c80490667a62c943aa51b0e34de4.tar.bz2 scala-2e5c8d22e443c80490667a62c943aa51b0e34de4.zip |
comments
-rw-r--r-- | sources/scala/xml/parsing/MarkupHandler.scala | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sources/scala/xml/parsing/MarkupHandler.scala b/sources/scala/xml/parsing/MarkupHandler.scala index 77d1dfb479..b1089a0a3b 100644 --- a/sources/scala/xml/parsing/MarkupHandler.scala +++ b/sources/scala/xml/parsing/MarkupHandler.scala @@ -2,7 +2,12 @@ package scala.xml.parsing; import scala.xml.dtd._ ; -/** class that handles markup - provides callback methods to MarkupParser */ +/** class that handles markup - provides callback methods to MarkupParser. + * the default is nonvalidating behaviour + * + * @todo can we ignore more entity declarations (i.e. those with extIDs)? + * @todo expanding entity references + */ abstract class MarkupHandler { /** returns true is this markup handler is validing */ @@ -32,6 +37,7 @@ abstract class MarkupHandler { def comment(pos: Int, comment: String ): NodeSeq; /** callback method invoked by MarkupParser after parsing entity ref. + * @todo expanding entity references */ def entityRef(pos: Int, n: String): NodeSeq; @@ -39,6 +45,8 @@ abstract class MarkupHandler { */ def text(pos: Int, txt:String): NodeSeq; + // DTD handler methods + def elemDecl(n: String, cmstr: String): Unit = {} def attListDecl(name: String, attList: List[AttrDecl]): Unit = {} |