scalaxb has generated the following case class definition based on my XSD:
case class Identifier(value: String,
attributes: Map[String, scalaxb.DataRecord[Any]] = Map()) {
lazy val typeValue = attributes("@type").as[String]
}
I'm struggling with how to instance this case class (especially how to add to its attributes). I looked around and could not find an example where a case class with attribute is constructed, something like . . .
Identifier(value="xxx", attributes=???)
or am I missing something in my approach?
Thanks