Earlier quoted context omitted.
That was not quite my point. Why pretend it is a string at all? 3 I should have been more clear. Sometimes you have these argument type deals where I would at least hope for or the monstrosity above (I assume ID=3 is not valid in hindsight, I am getting tired just writing this all on the second pass even!). And I see all different variations in the same XML file! There is no logical consistency, not even in the same…
What takes fewer lines of code to parse? Or accepting both: How would you specify an empty value for mandatory attributes?
data
Whether that's legal or not, I don't know.