That code should through errors or output invalid xml, unless what you have posted is not the complete code.
Visit the page in your browser and you should see some verbose errors from either coldfusion or your browser's xml parser. Dominic 2008/9/16 Ian Vaughan <[EMAIL PROTECTED]>: > Hi Mike > > I have surrounded it with a cfsilent tag to remove the white space, and > its still the same, no errors but no results appear? And I'm using > cfcontent as below. > > > <cfsilent> > </cfsilent>cfsetting enablecfoutputonly="yes"> > <cfquery name="getNames" datasource="dsn"> > SELECT surname > FROM tablename > WHERE surname LIKE <cfqueryparam cfsqltype="cf_sql_varchar" > value="#form.surname#"> > ORDER by surname ASC > </cfquery> > > <cfcontent type="text/xml; charset=UTF-8" > reset="yes"/><cfoutput>#theXML#</cfoutput> > <cfloop from="1" to="#getNames.recordcount#" index="ctr"> > <cfoutput> > <!--- add the XML config entry ---> > <rs id="" > info="#getNames.surname[ctr]#">#getNames.surname[ctr]#</rs> > </cfoutput> > </cfloop> > <cfoutput> > </results> > </cfoutput> > </cfsavecontent> > <cfoutput>#theXML#</cfoutput> > </cfsilent> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312613 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4