diff options
author | buraq <buraq@epfl.ch> | 2004-03-12 20:08:52 +0000 |
---|---|---|
committer | buraq <buraq@epfl.ch> | 2004-03-12 20:08:52 +0000 |
commit | 63f1bdd1000d6cb5a0ac7eb4aa918f63b0a855a4 (patch) | |
tree | 39dba60e9e9e0e7b05c2d1ee8ed265ef86aa1198 /test/files/xml | |
parent | 6c1888cb456c1fd87594399ca9cdeec4485dfaac (diff) | |
download | scala-63f1bdd1000d6cb5a0ac7eb4aa918f63b0a855a4.tar.gz scala-63f1bdd1000d6cb5a0ac7eb4aa918f63b0a855a4.tar.bz2 scala-63f1bdd1000d6cb5a0ac7eb4aa918f63b0a855a4.zip |
;changes to xml api
Diffstat (limited to 'test/files/xml')
-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 ); } } |