summaryrefslogtreecommitdiff
path: root/test/files/xml/xhtml.scala
diff options
context:
space:
mode:
authorburaq <buraq@epfl.ch>2003-11-17 10:59:53 +0000
committerburaq <buraq@epfl.ch>2003-11-17 10:59:53 +0000
commit4cf8078dabdf96dd47b512b928ef77ebac2d2a93 (patch)
tree88502c2c086fdd2ae804424885b08757ba5ddcb4 /test/files/xml/xhtml.scala
parent8e28c8583d74c4f356b7ea4a7cb55e164b3a1c0b (diff)
downloadscala-4cf8078dabdf96dd47b512b928ef77ebac2d2a93.tar.gz
scala-4cf8078dabdf96dd47b512b928ef77ebac2d2a93.tar.bz2
scala-4cf8078dabdf96dd47b512b928ef77ebac2d2a93.zip
changes to XML API and parameterized binding in...
changes to XML API and parameterized binding in dtd2scala better names changes to test suite
Diffstat (limited to 'test/files/xml/xhtml.scala')
-rw-r--r--test/files/xml/xhtml.scala12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/files/xml/xhtml.scala b/test/files/xml/xhtml.scala
index 0a6fc72d56..06f857612b 100644
--- a/test/files/xml/xhtml.scala
+++ b/test/files/xml/xhtml.scala
@@ -1,22 +1,22 @@
// $Id$
-import scala.xml.PCDATA;
+import scala.xml.Text;
import dtd._;
object Test {
def main( argv:Array[String] ) = {
- val link = A(PCDATA("link"));
+ val link = A(Text("link"));
//val m = new scala.collection.mutable.HashMap[String, String];
//m.put("href","http://lampwww.epfl.ch");
//link.setAttribs(m);
val body = Body(
- H1(PCDATA("Welcome to xhtml in scala")),
- P(PCDATA( "a paragraph")),
- P(PCDATA("another one, with a "),link,PCDATA(" to the LAMP homepage.")));
- val page = Html(Head(Title(PCDATA("a basic xhtml page"))), body);
+ H1(Text("Welcome to xhtml in scala")),
+ 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) ;
val doc = load(argv(0));