Article DS92 CodeSOD: Classic WTF: XML Abuse

CodeSOD: Classic WTF: XML Abuse

by
Jake Vinson
from The Daily WTF on (#DS92)

Is it still trendy to hate on XML? Of course it is! But this WTF would still be a WTF if it were built in JSON, because this is terrible.

This classic comes from 2008, but finding WTFs in XML knows no decade. - Remy

"Where I work we keep a lot of data stored in XML files," Ben writes. "They're not your average XML files, though - they're special." His colleague invented the following technique (recommended for senior level XML programmers only).

<rootNode> <numberOfAddresses>110</numberOfAddresses> <address_1>442 Fake St.</address_1> <address_2>61 Main St.</address_2> ... <address_110>3881 N 4th Ave. #5D</address_110></rootNode>

Ben adds, "Of course this means that an XSD schema is absolutely impossible to define."

release50.png[Advertisement] Release!is a light card game about software and the people who make it. Play with 2-5 people, or up to 10 with two copies - only $9.95 shipped! TheDailyWtf?d=yIl2AUoC8zAz7aUhMJF_EA
External Content
Source RSS or Atom Feed
Feed Location http://syndication.thedailywtf.com/TheDailyWtf
Feed Title The Daily WTF
Feed Link http://thedailywtf.com/
Reply 0 comments