diff options
-rw-r--r-- | test/files/xml/lnk.check | 1 | ||||
-rw-r--r-- | test/files/xml/lnk.scala | 7 | ||||
-rw-r--r-- | test/files/xml/xhtml.scala | 4 |
3 files changed, 8 insertions, 4 deletions
diff --git a/test/files/xml/lnk.check b/test/files/xml/lnk.check index 8e0d6e226e..28e69cb378 100644 --- a/test/files/xml/lnk.check +++ b/test/files/xml/lnk.check @@ -1,4 +1,5 @@ <link><name>hello-link</name></link> +<link target="http://www.scala.org"><name>hello-link</name></link> <lnkDB><linkgroup><groupname>LDAP Links</groupname><link target="http://www.openldap.org/doc/"><name>OpenLDAP Administration Guide</name><description>contains very readable section "What is LDAP"</description></link><linkgroup><groupname>LDAP RFCs</groupname><link target="ftp://ftp.isi.edu/in-notes/rfc2251.txt"><name>RFC2251 Lightweight Directory Access Protocol (v3)</name></link><link target="ftp://ftp.isi.edu/in-notes/rfc2252.txt"><name>Lightweight Directory Access Protocol (v3): Attribute Syntax Definitions</name></link><link target="ftp://ftp.isi.edu/in-notes/rfc2253.txt"><name>Lightweight Directory Access Protocol (v3): UTF-8 String Representation of Distinguished Names diff --git a/test/files/xml/lnk.scala b/test/files/xml/lnk.scala index 6a449d8ac4..412f948d99 100644 --- a/test/files/xml/lnk.scala +++ b/test/files/xml/lnk.scala @@ -14,11 +14,14 @@ object Test { // construct data using constructor val c = Link(Name(scala.xml.Text("hello-link"))); //c.getAttribs.update("target", "http://www.scala.org"); - System.out.println(c.toXML); + System.out.println( c ); + + val c2 = c % ('target <= "http://www.scala.org"); + System.out.println( c2 ); // construct data using loading from a file val lnkDB = load(args(0)); - System.out.println(lnkDB.toXML); + System.out.println( lnkDB ); } } diff --git a/test/files/xml/xhtml.scala b/test/files/xml/xhtml.scala index 834f7a4ca6..83de7a7020 100644 --- a/test/files/xml/xhtml.scala +++ b/test/files/xml/xhtml.scala @@ -17,10 +17,10 @@ object Test { P(Text( "a paragraph")), P(Text("another one, with a "),link,Text(" to the LAMP homepage."))); val page = Html(Head(Title(Text("a basic xhtml page"))), body); - System.out.println(page.toXML) ; + System.out.println( page ) ; val doc = load(argv(0)); - System.out.println(doc.toXML); + System.out.println( doc ); } } |