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.scala51
1 files changed, 0 insertions, 51 deletions
diff --git a/test/files/xml/lnk.scala b/test/files/xml/lnk.scala
deleted file mode 100644
index d5f0295f9c..0000000000
--- a/test/files/xml/lnk.scala
+++ /dev/null
@@ -1,51 +0,0 @@
-// $Id$
-
-import scala.xml.{Attribute, AttributeSeq, Node};
-import dtd._;
-
-object Test {
-
- // 3 ways to construct your data
- def main(args:Array[String]) = {
-
- val n = Node.NoAttributes ;
- // construct data using original Element name
- //val b: Node = dtd._factory.get("link").match { case Some(x) => x(Nil,null)}; // safe
- // !!! System.out.println(b.toXML);
-
- // construct data using constructor (valid)
- val c = Link(
- AttributeSeq.fromAttrs(
- Attribute("","target","http://www.scala.org")
- ),
- Name(n, scala.xml.Text("hello-link"))
- );
-
- try {
- val c2 = Name(
- n,
- Link( n )
- );
- Console.println("eh ?");
- } catch {
- case scala.xml.dtd.ValidationException(msg) => {
- Console.print("validator throws exception: ");
- Console.println( msg );
- }
- case z => // ignore
- Console.println("whut??? "+z.getClass);
-
- }
-
-
-
-
- //c.getAttribs.update("target", "http://www.scala.org");
- System.out.println( c );
-
- // construct data using loading from a file
- val lnkDB = load(args(0));
- System.out.println( lnkDB );
- }
-
-}