summaryrefslogtreecommitdiff
path: root/sources/scala/xml/Element.scala
blob: 02172396e443a1166365e5a6876bf11c2271bac6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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