diff options
Diffstat (limited to 'test/files/jvm/xmlLiterals.scala')
-rw-r--r-- | test/files/jvm/xmlLiterals.scala | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/test/files/jvm/xmlLiterals.scala b/test/files/jvm/xmlLiterals.scala index 65abd50094..d68a61ab62 100644 --- a/test/files/jvm/xmlLiterals.scala +++ b/test/files/jvm/xmlLiterals.scala @@ -266,6 +266,22 @@ object Test03Servlet { Console.println( x2 ); } + def test06 = { + + val foo = + <bar:foo xmlns:bar="www.bar.com" xmlns="www.baz.com"> + <baz/> + </bar:foo>; + + Console.println( foo ); + val h = new scala.collection.mutable.HashMap[String,String](); + h("www.bar.com") = "bar"; + h("www.baz.com") = ""; + Console.println( Utility.toXML(foo, h) ); + + } + + def main( args:Array[String] ):Unit = { Console.println("Test01Literals"); Test01Literals; @@ -276,7 +292,9 @@ object Test03Servlet { Console.println("Test04"); Test04; Console.println("Test05Ref"); - test05main;{ + test05main; + Console.println("namespace"); + test06;{ } } |