Article 6P25M Best of…: Classic WTF: XML Anybody?

Best of…: Classic WTF: XML Anybody?

by
Alex Papadimoulis
from The Daily WTF on (#6P25M)
We're taking our summer break, which means we reach back into the archives and find some classics. This one teaches you everything you need to know about generating XML. --Remy

XML isan absolutely wonderful innovation. It allows us to easily describe and share just about any data immaginable. Of course, there's always gotta be someone (as Tim points out) who has to go and ... well ... see for yourself ...

o_xmlanybody.jpg

The code in this screenshot exists in about 20 places. Each time is this style and is customized for the particular set of statistics that that test generated. Recently I was brought on to the project and part of my goal was to improve the projects effectiveness. Since no DTDs or documentation of any kind existed for the XML format(s) I created one. Imagine my horror when changes need to ripple through 20+ "custom" XML outputs. Unfortunately this code still exists but I am trying hard to correct things that make it hard to eliminate (can anyone say tight coupling).

buildmaster-icon.png [Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!
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