diff options
author | Paul Phillips <paulp@improving.org> | 2009-04-28 20:14:12 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-04-28 20:14:12 +0000 |
commit | 912da5d2ea6993d7393f340b411fba12fe545894 (patch) | |
tree | 162b685e3ae60f3f3440eaeeab526ee483d055dc /test/files/jvm | |
parent | ae897e4d285782753670b082f62d7f14936a4bef (diff) | |
download | scala-912da5d2ea6993d7393f340b411fba12fe545894.tar.gz scala-912da5d2ea6993d7393f340b411fba12fe545894.tar.bz2 scala-912da5d2ea6993d7393f340b411fba12fe545894.zip |
Rewrote XML pull parser using exciting modern t...
Rewrote XML pull parser using exciting modern techniques.
Diffstat (limited to 'test/files/jvm')
-rw-r--r-- | test/files/jvm/xmlpull.scala | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/files/jvm/xmlpull.scala b/test/files/jvm/xmlpull.scala index 1f0e6a8497..d2bb72a071 100644 --- a/test/files/jvm/xmlpull.scala +++ b/test/files/jvm/xmlpull.scala @@ -7,25 +7,25 @@ object Test { val src = Source.fromString("<hello><world/>!</hello>") def main(args: Array[String]) { - var er = new XMLEventReader().initialize(src) + var er = new XMLEventReader(src) er.next match { case EvElemStart(_, "hello", _, _) => //println("1") - } - er.next match { + } + er.next match { case EvElemStart(_, "world", _, _) => //println("2") } - er.next match { + er.next match { case EvElemEnd(_, "world") => //println("3") } - er.next match { + er.next match { case EvText("!") => //println("4") - } + } er.next match { case EvElemEnd(_, "hello") => //println("5") - } - // you get the picture... - er.stop // allow thread to be garbage-collected - //println("6") + } + // you get the picture... + er.stop // allow thread to be garbage-collected + //println("6") } } |