Tag Archives: name

Converting a .CSV file to a query and specifying custom column names using the CFHTTP tag in ColdFusion

In a previous example, “Converting a .CSV file to a query using the CFHTTP tag in ColdFusion”, we saw how you could convert an external .CSV (comma separated values) file into a query using the <CFHTTP> tag in ColdFusion and setting the name, url, and firstRowAsHeaders attributes.

The following example shows how you can override the CSV file header row with custom column names for the query by specifying the columns attribute on the <CFHTTP> tag in ColdFusion.

Continue reading

Determining the number of items in an XML feed in ColdFusion

In a previous example, “Parsing a remote XML feed using the CFFEED tag in ColdFusion”, we saw how you could parse a remote XML feed into an XML object using the <CFFEED> tag in ColdFusion by setting the action attribute to “read” and setting the source, and xmlVar attributes.

The following example shows how you can determine the number of items in an XML feed by using the <CFFEED> tag and arrayLen() method.

Continue reading