Here's a fragment of code I'm playing with:
package Soap;
import scala.xml.{Elem, Node, NamespaceBinding};
object SoapNamespace extends NamespaceBinding("env",
"
http://www.w3.org/2003/05/soap-envelope", scala.xml.TopScope)
class SoapElement(label : String, attributes : scala.xml.MetaData, children :
scala.xml.Node*) extends Elem("env", label, attributes, SoapNamespace, children)
{
}
I get a type mismatch error (found scala.xml.Node* required: scala.xml.Node) on
the definition of SoapElement. I understand the problem, but I'm sort of stuck
for a better way to code this. I can do away with the SoapElement class
entirely - it's just a convenience class my other classes extend so all the soap
elements will have the same prefix and namespace, but I'd like to avoid code
duplication as much as possible. Anyway, in general, is it possible for a
subclass constructor to pass a type of someobject* to its superclass? Thanks
for any help.
-Eric