The Most Important Slide
-
Always, ALWAYS, check the data first:
- parse the XML before doing anything with it
- if you can, refuse the XML if it is not valid
- if you cannot, write code to fix it, then validate it
-
It doesn't matter who generated the XML, another company, another department, your department, YOU ...
-
ONLY work on clean data
-
You WILL hate character encodings