<?xml version="1.0" encoding="iso-8859-1"?>

<rdf:RDF 
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns="http://purl.org/rss/1.0/"
>
	<channel rdf:about="http://www.coldfusioncookbook.com">
	<title>Coldfusion Cookbook</title>
	<description>Coldfusion Cookbook - Latest 10 Entries</description>
	<link>http://www.coldfusioncookbook.com</link>
	
	<items>
		<rdf:Seq>
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/154/How-do-I-parse-RSS-feeds?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/155/How-do-I-create-RSS-feeds?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/153/How-do-I-create-a-query-by-hand?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/152/How-can-you-test-to-see-if-two-arrays-are-the-same?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/151/How-do-I-find-the-file-extension-for-a-file?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/150/How-do-I-monitor-a-file-directory-for-added/deleted/-changed-files?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/149/How-do-I-get-information-about-a-file?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/148/How-can-I-retrieve-attachments-from-an-email-message?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/147/How-can-I-delete-email-messages-from-a-mail-server?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/146/How-do-I-get-the-primary-key-of-a-record-added-to-the-database?" />
			
		</rdf:Seq>
	</items>
	
	</channel>
	

	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/154/How-do-I-parse-RSS-feeds?">
		<title>How do I parse RSS feeds?</title>
		<description>RSS is a form of syndication in use by almost all blogs and many other types of web sites. It is a simple way to list, via XML, the latest content that has been updated on a web site. While parsing XML isn&apos;t difficult in ColdFusion, to work with RSS you have to have a good understanding of both the multiple &quot;flavors&quot; or RSS in use today as well a deep understanding of how the content is encoded within the XML. Luckily ColdFusion makes this relatively easy with the &amp;lt;CFFEED&amp;gt; tag. 

As a si...</description>
		<link>http://www.coldfusioncookbook.com/entry/154/How-do-I-parse-RSS-feeds?</link>
		<dc:date>2008-12-20T09:33:56-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/155/How-do-I-create-RSS-feeds?">
		<title>How do I create RSS feeds?</title>
		<description>The &amp;lt;cffeed&amp;gt; tag can be used to both read and create RSS feeds. To create an RSS feed, you need two things. First you need the data that will provide the content for RSS feed. Next you need a set of properties that define the RSS feed. Let&apos;s begin by getting the data for the feed. &amp;lt;cffeed&amp;gt; supports generating a feed from a query or structure. Most people will want to use a query, so let&apos;s begin with that:

&lt;code&gt;
&lt;cfquery name=&quot;entries&quot; datasource=&quot;blogdev&quot; maxrows=&quot;10&quot;&gt;
select  ...</description>
		<link>http://www.coldfusioncookbook.com/entry/155/How-do-I-create-RSS-feeds?</link>
		<dc:date>2008-12-20T09:33:25-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/153/How-do-I-create-a-query-by-hand?">
		<title>How do I create a query by hand?</title>
		<description>Most (but not all) ColdFusion queries come straight from the database, but there are times when you need to work with a query without using a database. Whether for debugging or other purposes, it is sometimes useful to be able to create a query manually. To create a query, you use the queryNew() function. This takes two arguments. The first argument is required and is a list of column names. The second argument is option and is a corresponding list of data types for the columns. If you use this ...</description>
		<link>http://www.coldfusioncookbook.com/entry/153/How-do-I-create-a-query-by-hand?</link>
		<dc:date>2008-08-14T09:33:28-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/152/How-can-you-test-to-see-if-two-arrays-are-the-same?">
		<title>How can you test to see if two arrays are the same?</title>
		<description>CF does not offer an easy way to compare two single dimension arrays. The most common solution involving looping through one array and comparing each item to the second array. It is a complicated and messy solution.

Actually there&apos;s a very simple way of comparing two arrays using CF&apos;s underlying java. According to a recent blog by Rupesh Kumar of Adobe (http://coldfused.blogspot.com/), ColdFusion arrays are an implementation of java lists (java.util.List). So all the Java list methods are ava...</description>
		<link>http://www.coldfusioncookbook.com/entry/152/How-can-you-test-to-see-if-two-arrays-are-the-same?</link>
		<dc:date>2008-07-21T09:30:28-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/151/How-do-I-find-the-file-extension-for-a-file?">
		<title>How do I find the file extension for a file?</title>
		<description>Use the listLast() function.

&lt;code&gt;
&lt;cfset myExt = &quot;myDocument.pdf&quot;&gt;
&lt;cfset myExt = listLast(myExt,&quot;.&quot;)&gt;

&lt;cfoutput&gt;#myExt#&lt;/cfoutput&gt;
&lt;/code&gt;</description>
		<link>http://www.coldfusioncookbook.com/entry/151/How-do-I-find-the-file-extension-for-a-file?</link>
		<dc:date>2008-07-21T09:24:20-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/150/How-do-I-monitor-a-file-directory-for-added/deleted/-changed-files?">
		<title>How do I monitor a file directory for added/deleted/ changed files?</title>
		<description>Event Gateways: Directory Watcher

Open the ColdFusion Administrator and go to &quot;EVENT GATEWAYS/Gateway Types&quot;. ColdFusion comes with a few predefined Gateway Types one of them being &quot;DirectoryWatcher&quot;.

Now select &quot;Gateway Instances&quot; under the &quot;EVENT GATEWAYS&quot; heading in the left-hand menu. Create a new directory somewhere on your server to host the CFC and Configuration files that will handle your new Gateway operation.

For example: C:\Inetpub\wwwroot\com\company\services\dw

1. Inside...</description>
		<link>http://www.coldfusioncookbook.com/entry/150/How-do-I-monitor-a-file-directory-for-added/deleted/-changed-files?</link>
		<dc:date>2008-07-21T09:18:54-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/149/How-do-I-get-information-about-a-file?">
		<title>How do I get information about a file?</title>
		<description>Use the getFileInfo() function.  

GetFileInfo returns a structure with the following information: filename, path, parent directory, type, size, when the file was most recently modified, whether the file has read permission, write permission, and is hidden.

&lt;code&gt;
&lt;cfdump var=&quot;#getFileInfo(&quot;/myFile.doc&quot;)#&quot;&gt;
&lt;/code&gt;
</description>
		<link>http://www.coldfusioncookbook.com/entry/149/How-do-I-get-information-about-a-file?</link>
		<dc:date>2008-07-18T08:40:09-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/148/How-can-I-retrieve-attachments-from-an-email-message?">
		<title>How can I retrieve attachments from an email message?</title>
		<description>Use &amp;lt;cfpop&amp;gt; with the action attribute set to &apos;getall&apos; and the attachmentpath attribute set to the directory on your server that you want to save any attachments. 

You can then loop over the resulting query object to perform any other required logic such as logging the attachment information

&lt;code&gt;
&lt;!--- open mailbox ---&gt;
&lt;cfpop
  action=&quot;getall&quot;
  name=&quot;Q_emailGetAll&quot;
  server=&quot;SERVER_NAME&quot;
  username=&quot;USERNAME&quot;
  password=&quot;PASSWORD&quot;
  attachmentpath=&quot;\\SERVER_NAME\FOLDER\&quot;&gt;...</description>
		<link>http://www.coldfusioncookbook.com/entry/148/How-can-I-retrieve-attachments-from-an-email-message?</link>
		<dc:date>2008-07-17T10:05:25-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/147/How-can-I-delete-email-messages-from-a-mail-server?">
		<title>How can I delete email messages from a mail server?</title>
		<description>Use &amp;lt;cfpop&amp;gt; with the action attribute set to &apos;delete&apos; and the messagenumber attribute or uuid attribute set to the message you wish to delete.

&lt;code&gt;
&lt;cfpop
  action=&quot;delete&quot;
  server=&quot;SERVER_NAME&quot;
  username=&quot;USERNAME&quot;
  password=&quot;PASSWORD&quot;
  messagenumber=&quot;MESSAGENUMBER&quot; 
&lt;/code&gt;

This entry was based on a suggestion by Stefan Leroux</description>
		<link>http://www.coldfusioncookbook.com/entry/147/How-can-I-delete-email-messages-from-a-mail-server?</link>
		<dc:date>2008-07-17T10:05:06-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/146/How-do-I-get-the-primary-key-of-a-record-added-to-the-database?">
		<title>How do I get the primary key of a record added to the database?</title>
		<description>Many people use database tables with autonumber primary keys. These are columns (typically named &quot;id&quot;) that the database will provide a value for by simply adding one to the last highest value. So if the last record inserted had an ID value of 5, the next will be 6. (Note that this isn&apos;t always true. You can&apos;t assume the next value will be one over the last highest value.) If you need to find out what value was used for the primary key, ColdFusion provides a simple way to do that. 

To use thi...</description>
		<link>http://www.coldfusioncookbook.com/entry/146/How-do-I-get-the-primary-key-of-a-record-added-to-the-database?</link>
		<dc:date>2008-07-15T10:06:58-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	

	
	</rdf:RDF>