In order for a DataRecord
to not lose the freight during the round trip of <any>
, I've been storing the scala.xml.Elem
object within it. This is convenient for the round trip, but not for consuming the DataRecord
. The problem with <any>
is that it could be anything, and I wouldn't know how to parse them. At least when they are not built-in types.
Now that mixed contents have been cleaned up, it seemed like a good time to start parsing XSD built-in types too. Here's how it looks like:
def testAny {
val subject = <foo xmlns="http://www.example.com/any"