eed3si9n/scalaxb — Issue #94: scalaxb doesn't handle scala.xml.NodeSeq correctly 
Author: dkhenry
Created: 2011-10-19 20:06:39+00:00
State: open

about line 635 of scalaxb.scala we have this.

I am pretty confident it will always take the default case and throw an error. I am guessing we need to iterate over the NodeSeq and return a List[A] ?

trait ElemNameParser[A] extends AnyElemNameParser with XMLFormat[A] with CanWriteChildNodes[A] {
def reads(seq: scala.xml.NodeSeq, stack: List[ElemName]): Either[String, A] = seq match {
case node: scala.xml.Node =>
parse(parser(node, stack), node.child) match {
case x: Success[_] => Right(x.get)
case x: Failure => Left(parserErrorMsg(x.msg, x.next, ElemName(node) :: stack))
case x: Error => Left(parserErrorMsg(x.msg, node))
}
case _ => Left("seq must be scala.xml.Node")
}