Closed Vesli closed 5 years ago
It looks like in the XML the match has an attribute called "statustype" but your code is looking for the attribute "statusType". So, it fails to parse the match element to Match
(and seq
is somewhat lenient). If you had used strictReadSeq
instead of seq
, it probably would have given you an error.
I'm going to close this, since I have answered the question. If you still have an issue, please reopen.
Hello,
I am trying your library and I am facing a difficulty when parsing xml.
build.sbt:
I have this xml generated from a sport API:
And following the example given I have this structured data:
The XmlHelper is the same as in the github example:
and my main app:
But when I try my code, I have this:
Whatever I try - changing the Match attribute or using lazyRead - it doesn't want to process the tags.
Any chance I am doing something completely wrong here?