diff options
Diffstat (limited to 'test/files/xml/lnk.scala')
-rw-r--r-- | test/files/xml/lnk.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/xml/lnk.scala b/test/files/xml/lnk.scala index 72ccc117ec..b338724c89 100644 --- a/test/files/xml/lnk.scala +++ b/test/files/xml/lnk.scala @@ -9,12 +9,12 @@ object Test { // 3 ways to construct your data def main(args:Array[String]) = { // construct data using original Element name - val b: Element = dtd._factory.get("link")(Nil); // safe + val b: Element = dtd._factory.get("link").match { case Some(x) => x(Nil)}; // safe // !!! System.out.println(b.toXML); // construct data using constructor val c = Link(Name(PCDATA("hello-link"))); - c.getAttribs.put("target", "http://www.scala.org"); + //c.getAttribs.update("target", "http://www.scala.org"); System.out.println(c.toXML); // construct data using loading from a file |