summaryrefslogtreecommitdiff
path: root/test/files/xml/lnk.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/xml/lnk.scala')
-rw-r--r--test/files/xml/lnk.scala9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/files/xml/lnk.scala b/test/files/xml/lnk.scala
index 962c2f9149..8d81eae609 100644
--- a/test/files/xml/lnk.scala
+++ b/test/files/xml/lnk.scala
@@ -1,6 +1,6 @@
// $Id$
-import scala.xml.Node;
+import scala.xml.{Attribute, AttributeSeq, Node};
import dtd._;
object Test {
@@ -14,7 +14,12 @@ object Test {
// !!! System.out.println(b.toXML);
// construct data using constructor
- val c = Link(n + "target" -> "http://www.scala.org", Name(n, scala.xml.Text("hello-link")));
+ val c = Link(
+ new AttributeSeq(
+ Attribute("","target","http://www.scala.org")
+ ),
+ Name(n, scala.xml.Text("hello-link"))
+ );
//c.getAttribs.update("target", "http://www.scala.org");
System.out.println( c );