diff options
-rw-r--r-- | sources/scala/xml/nobinding/Element.scala | 4 | ||||
-rw-r--r-- | sources/scala/xml/nobinding/NoBindingFactoryAdapter.scala | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sources/scala/xml/nobinding/Element.scala b/sources/scala/xml/nobinding/Element.scala index f5e010fbc8..9ef463b636 100644 --- a/sources/scala/xml/nobinding/Element.scala +++ b/sources/scala/xml/nobinding/Element.scala @@ -5,9 +5,9 @@ import scala.collection.immutable.ListMap ; /** an XML node. use this when data binding is not desired. **/ -class Element( symbol: Symbol, ch: Seq[Node] ) extends AttributedNode { +class Element( name:String, ch: Seq[Node] ) extends AttributedNode with Symbol( name, ch ) { - def label = symbol.name; + def label = name; def children = ch; override def attributes : Map[String,String] = ListMap.Empty[String,String] ; diff --git a/sources/scala/xml/nobinding/NoBindingFactoryAdapter.scala b/sources/scala/xml/nobinding/NoBindingFactoryAdapter.scala index 84a51066c4..afd0941bff 100644 --- a/sources/scala/xml/nobinding/NoBindingFactoryAdapter.scala +++ b/sources/scala/xml/nobinding/NoBindingFactoryAdapter.scala @@ -18,7 +18,7 @@ class NoBindingFactoryAdapter extends FactoryAdapter { attrs: HashMap[String,String], children: List[Node] ):Element = { - val el = new Element( Symbol( label ), children ) { + val el = new Element( label, children ) { override def attributes = attrs; }; |