title: Error with CFLoop When Entries Are Missing
body: <p>I have the following code. </p>
  
  <pre><code>&lt;cfoutput&gt;
  &lt;cfxml variable="eating"&gt;
  &lt;catalog&gt;
  &lt;results&gt;10&lt;/results&gt;
  &lt;food id="bk101"&gt;
  &lt;initials&gt;BK&lt;/initials&gt;
  &lt;keywords&gt;Burger King, pie, hamburgers, fries, milkshakes&lt;/keywords&gt;
  &lt;/food&gt;
  &lt;food id="bk102"&gt;
  &lt;initials&gt;TB&lt;/initials&gt;
  &lt;keywords&gt;Taco Bell, tacos, churros, burrito, gorditas&lt;/keywords&gt;
  &lt;/food&gt;
  &lt;food id="bk103"&gt;
  &lt;keywords&gt;Pizza Hut, pizza, cheese, garlic bread&lt;/keywords&gt;
  &lt;/food&gt;
  &lt;food id="bk104"&gt;
  &lt;initials&gt;CFA&lt;/initials&gt;
  &lt;keywords&gt;Chick-Fil-A, chicken, chicken wrap, sauce, Bananas Pudding Milkshake&lt;/keywords&gt;
  &lt;/food&gt;
  &lt;food id="bk105"&gt;
  &lt;initials&gt;PE&lt;/initials&gt;
  &lt;keywords&gt;Panda Express, rice, egg rolls, general tso&lt;/keywords&gt;
  &lt;/food&gt;
  &lt;food id="bk106"&gt;
  &lt;initials&gt;SJ&lt;/initials&gt;
  &lt;keywords&gt;Sakura Japan, rice, spring rolls, bento&lt;/keywords&gt;
  &lt;/food&gt;
  &lt;food id="bk107"&gt;
  &lt;keywords&gt;Five Guys, fries, burgers, hot dogs&lt;/keywords&gt;
  &lt;/food&gt;
  &lt;food id="bk108"&gt;
  &lt;initials&gt;TN&lt;/initials&gt;
  &lt;keywords&gt;Tandoori Nights, biryani, chicken, egg rolls&lt;/keywords&gt;
  &lt;/food&gt;
  &lt;food id="bk109"&gt;
  &lt;initials&gt;HoK&lt;/initials&gt;
  &lt;keywords&gt;House of Kabob, rice, bread, beef kabaob, chicken kabob&lt;/keywords&gt;
  &lt;/food&gt;
  &lt;food id="bk110"&gt;
  &lt;initials&gt;BF&lt;/initials&gt;
  &lt;keywords&gt;Baja Fresh, quesadilla, soft taco, chili con queso&lt;/keywords&gt;
  &lt;/food&gt;
  &lt;/catalog&gt;
  &lt;/cfxml&gt;
  
  
  &lt;cfset data = queryNew("id,initials,keywords","integer,varchar,varchar")&gt;
  &lt;cfloop index="x" from="1" to="#eating.catalog.results.xmlText#"&gt;
  &lt;cfset queryAddRow(data)&gt;
  &lt;cfset querySetCell(data,"id",x)&gt;
  &lt;cfset querySetCell(data,"initials","#eating.catalog.food[x].initials#")&gt;
  &lt;cfset querySetCell(data,"keywords","#eating.catalog.food[x].keywords#")&gt;
  &lt;/cfloop&gt;
  &lt;/cfoutput&gt;
  
  &lt;cfoutput query="data"&gt;
  #id# - &lt;b&gt;#initials#&lt;/b&gt; #keywords#&lt;br /&gt;
  &lt;/cfoutput&gt;
  </code></pre>
  
  <p>You will notice the initial tags are missing for Elements 3 and 7 in the XML feed . If the initials tags are added to the XML for Elements 3 and 7, the code works beautifully. However since they are missing, this causes CFLoop to throw out an error. </p>
  
  <p>What I would like to do is omit Element 3 (and all other entries which cause an error) from my results and prevent any errors from showing so the application result shows up like so</p>
  
  <p>1 - BK Burger King, pie, hamburgers, fries, milkshakes</p>
  
  <p>2 - TB Taco Bell, tacos, churros, burrito, gorditas</p>
  
  <p>4 - CFA Chick-Fil-A, chicken, chicken wrap, sauce, Bananas Pudding Milkshake</p>
  
  <p>5 - PE Panda Express, rice, egg rolls, general tso</p>
  
  <p>6 - SJ Sakura Japan, rice, spring rolls, bento</p>
  
  <p>8 - TN Tandoori Nights, biryani, chicken, egg rolls</p>
  
  <p>9 - HoK House of Kabob, rice, bread, beef kabaob, chicken kabob</p>
  
  <p>10 - BF Baja Fresh, quesadilla, soft taco, chili con queso </p>
  
  <p>The above feed is a simplified example, my actual feed has hundreds of elements. With that in mind, how can I omit any Elements that give me an error, while still including the elements that do?</p>