Having discovered Artur Kordowski's DataTypeConvert CFC, I was at first impressed and then slowly disappointed at several of the functions that he created.
The main one was XMLtoStruct which converted the XML into a Struct of Structs when a Struct of Array of Structs would have yielded a far more impressive result.
As it was, you were forced to do a StructCount() to find the number of elements in the Struct and then loop through them like an array. But, this always assumed that there were multiple elements to loop through, which could only be determined by doing StructKeyExists(theData, "1") which is just plain inefficient.
So, I thought I'd have a go at my own. Please feel free to download the CFC below - it's commented as best as I can without spending hours on it ;-)
No comments:
Post a Comment