XML II?
Wednesday, January 21st, 2004There is a lot of debate about if XML parsers should try and recover from non-wellformed ness at the moment. The argument generally goes that if you’re parsing XML, that noone is going to parse non-wellformed XML the same way twice so who knows what you would end up with vs you should at least attempt to do something.
Now, My thoughts are that if you made it so that well formed XML had no obvious meaning people would be less inclined to try and correct it. For instance, XML has tag> tags at the end of a
The next thing is to make sure that attributes have closing “’s, well, noone really knows what an XML attribute is anyway, so get rid of ‘em. So we have instead:
And well, thats kinda messy, so lets replace < a>b with (a b) and uh, wee! sexp’s!