summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorburaq <buraq@epfl.ch>2003-06-14 16:51:15 +0000
committerburaq <buraq@epfl.ch>2003-06-14 16:51:15 +0000
commitaa579de50f6c0f3588e5ef2b8188f8e2bcd32cd9 (patch)
treeb43b67bdef55185e4b9e2f648d99b497acdec99e
parent8cfce062de540c2ff849e9fa2463dd77d1b7ecde (diff)
downloadscala-aa579de50f6c0f3588e5ef2b8188f8e2bcd32cd9.tar.gz
scala-aa579de50f6c0f3588e5ef2b8188f8e2bcd32cd9.tar.bz2
scala-aa579de50f6c0f3588e5ef2b8188f8e2bcd32cd9.zip
representation of xml elements in scala
-rw-r--r--sources/scala/xml/Element.scala24
1 files changed, 24 insertions, 0 deletions
diff --git a/sources/scala/xml/Element.scala b/sources/scala/xml/Element.scala
new file mode 100644
index 0000000000..02172396e4
--- /dev/null
+++ b/sources/scala/xml/Element.scala
@@ -0,0 +1,24 @@
+package scala.xml ;
+
+abstract class Element {
+
+ def getName: String; // the real element name
+ def getChildren: List[Element]; // the children
+ def getAttribs: Map[ String, String ];
+
+ /*
+ def toXML : String = {
+ val attribs = getAttribs;
+ var attribStr = "";
+ if( attribs != null )
+ attribStr = scala.xml.util.toXML( attribs )
+ else
+ () ;
+ "<" + getName
+ + attribStr
+ + ">"
+ + scala.xml.util.toXML( getChildren )
+ + "</" + getName + ">" ;
+ } // def toXML
+*/
+} // abstract class