|
||||||
In Touch with My (Case-)Sensitive SideOK, here's a nugget that could have saved me several hours: XML is case-sensitive! I'm working on a content management system which saves content objects as XML in a SQL Server database. A typical content object might look something like this: <?xml version="1.0"?> So, I wrote some code (in VB.NET, which is not case-sensitive) to extract individual content elements, and it wouldn't work -- kept returning empty strings! I spent hours poring over the code, tweaking the XML, banging my head against my desk... Turns out I was looking for an Item whose Name attribute was equal to title instead of Title. GRRRR! Go ahead and laugh, but if you ever make a similar mistake, you'll thank me! Comments
Post a comment
|
Presentations
Extreme Makeover: Web EditionCreate Great User Interfaces Articles
UX Tip of the Week: Why Message Boxes Are EvilEasy RSS in VB.NET Is Inheritance Overrated? A Tale of Tabbed Pages Categories
.NETBlog Career Cycling Geek Humor Microsoft Music Personal Rants Reading Software Tech Travel Usability VB Archives
December 2010May 2010 February 2010 January 2010 June 2009 March 2008 December 2006 August 2006 April 2006 February 2006 January 2006 December 2005 September 2005 June 2005 May 2005 March 2005 January 2005 December 2004 September 2004 July 2004 June 2004 January 2004 August 2003 July 2003 May 2003 April 2003 March 2003 February 2003 January 2003 December 2002 November 2002 Misc
Talk to MeSubscribe |
|||||
And they say that size doesn't matter ;)