Case Sensitivity In XML

Thursday, September 4th, 2008

Just a quick note to everyone trying to use XML in Coldfusion.  Don’t use a “true” parameter in XMLNew().  Things will go haywire.  Just use false and it manages to still retain all of the case sensitivity.

My hunch for why this makes things go haywire is that you cannot use the normal dot notation for accessing the sub-elements because CF capitalizes anything in the dot notation.

Another related note: don’t use the built-in XSLT processor.  It sucks and isn’t fully implemented.  Use cfexecute and get some sort of external XSLT engine.  The one I’m currently using is Saxon.  It’s slow, but it works.