<?xml version="1.0" encoding="utf-8"?>
<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://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-b21.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-26T08:18:24</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#24570" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#18471" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#17839" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#11862" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#6805" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#6584" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#2202" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#1261" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#1260" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#24570">
		<title>coldfusion/6.1/htmldocs/tags-b21.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#24570</link>
		<description>is there a way to have either the cfxml tag or the ToString function exclude markup for empty elements? so if an element is:&lt;br /&gt;&lt;br /&gt;&lt;PONumber&gt;&lt;/PONumber&gt;&lt;br /&gt;&lt;br /&gt;it won't be written out to the XML string at all?</description>
		<dc:creator>lukecrouch</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-11-29T09:15:41</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#18471">
		<title>coldfusion/6.1/htmldocs/tags-b21.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#18471</link>
		<description>Answer to jonwrob: you should use the XMLFormat() function, which is exactly made for this type of thing.</description>
		<dc:creator>frinky!!!</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-07-14T05:21:25</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#17839">
		<title>coldfusion/6.1/htmldocs/tags-b21.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#17839</link>
		<description>Is there a way for cfxml to escape illegal characters such as &quot;&amp;&quot;, &quot;&lt;&quot;, and &quot;&gt;&quot; as the document is being parsed?&lt;br /&gt;&lt;br /&gt;It appears that cfxml throws an error if any xml element contains an &quot;&amp;&quot; character.  What it should do is escape the character, that is, return &quot;&amp;amp;&quot;.  The alternative to doing this automatically is to add a call to a replace function for every piece of data that is in the xml document.  Needless to say, this is highly inconvenient.</description>
		<dc:creator>jonwrob</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-06-30T14:10:32</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#11862">
		<title>coldfusion/6.1/htmldocs/tags-b21.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#11862</link>
		<description>I have the following code (see below).  When I close the file in DWMX6.1 and reopen it again for editing, all the xml tags are stripped of their names!  Can anyone tell me why?  Many thanks.&lt;br /&gt;&lt;br /&gt;&lt;cfquery datasource=&quot;#request.ds#&quot; name=&quot;getGamePack&quot;&gt;&lt;br /&gt;	SELECT	packid,welcome_1,welcome_2,welcome_3,rules_1,rules_2,title,category_a,category_b,category_c,category_d&lt;br /&gt;	FROM	tbl_packData&lt;br /&gt;	WHERE	packid = #form.packid#	&lt;br /&gt;&lt;/cfquery&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfquery datasource=&quot;#request.ds#&quot; name=&quot;getGameCards&quot;&gt;&lt;br /&gt;	SELECT	packid,cardid,title,description,score_a,score_b,score_c,score_d,image_url&lt;br /&gt;	FROM	tbl_cardData&lt;br /&gt;	WHERE	packid = #form.packid#	&lt;br /&gt;&lt;/cfquery&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfxml variable=&quot;xmlTrumpsGame&quot; casesensitive=&quot;yes&quot;&gt;&lt;br /&gt;&lt;gamepack&gt;&lt;br /&gt;	&lt;cfoutput query=&quot;getGamePack&quot;&gt;&lt;br /&gt;		&lt;welcome1&gt;#getGamePack.welcome_1#&lt;/welcome1&gt;&lt;br /&gt;		&lt;welcome2&gt;#getGamePack.welcome_2#&lt;/welcome2&gt;&lt;br /&gt;		&lt;welcome3&gt;#getGamePack.welcome_3#&lt;/welcome3&gt;&lt;br /&gt;		&lt;rules1&gt;#getGamePack.rules_1#&lt;/rules1&gt;&lt;br /&gt;		&lt;rules2&gt;#getGamePack.rules_2#&lt;/rules2&gt;&lt;br /&gt;		&lt;title&gt;#getGamePack.title#&lt;/title&gt;&lt;br /&gt;		&lt;catA&gt;#getGamePack.category_a#&lt;/catA&gt;&lt;br /&gt;		&lt;catB&gt;#getGamePack.category_b#&lt;/catB&gt;&lt;br /&gt;		&lt;catC&gt;#getGamePack.category_c#&lt;/catC&gt;&lt;br /&gt;		&lt;catD&gt;#getGamePack.category_d#&lt;/catD&gt;&lt;br /&gt;	&lt;/cfoutput&gt;&lt;br /&gt;	&lt;br /&gt;	&lt;cfoutput query=&quot;getGameCards&quot;&gt;&lt;br /&gt;		&lt;card id=&quot;#getGameCards.cardid#&quot;&gt;&lt;br /&gt;			&lt;title&gt;#getGameCards.title#&lt;/title&gt;&lt;br /&gt;			&lt;desc&gt;#getGameCards.description#&lt;/desc&gt;&lt;br /&gt;			&lt;scoreA&gt;#getGameCards.score_a#&lt;/scoreA&gt;&lt;br /&gt;			&lt;scoreB&gt;#getGameCards.score_b#&lt;/scoreB&gt;&lt;br /&gt;			&lt;scoreC&gt;#getGameCards.score_c#&lt;/scoreC&gt;&lt;br /&gt;			&lt;scoreD&gt;#getGameCards.score_d#&lt;/scoreD&gt;&lt;br /&gt;			&lt;url&gt;#getGameCards.image_url#&lt;/url&gt;&lt;br /&gt;		&lt;/card&gt;&lt;br /&gt;	&lt;/cfoutput&gt;&lt;br /&gt;&lt;/gamepack&gt;&lt;br /&gt;&lt;/cfxml&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfset xml = #ToString(xmlTrumpsGame)#&gt;&lt;br /&gt;&lt;br /&gt;&lt;cffile action=&quot;write&quot; file=&quot;#getDirectoryFromPath(getTemplatePath())##getGamePack.packid#.xml&quot; output=&quot;#xml#&quot;&gt;</description>
		<dc:creator>Simon Whatley</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-03-26T02:12:59</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#6805">
		<title>coldfusion/6.1/htmldocs/tags-b21.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#6805</link>
		<description>In ColdFusion MX 6.1, the cfxml tag converts the its body text into an internal XML document object, which is always stored in memory Unicode. &lt;br&gt;You use ToString to reconvert the document object to a text string, at which time ColdFusion automatically prepends the &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt; XML declaration. &lt;br&gt;To change the declaration to specify another encoding, use the Replace function. &lt;br&gt;To specify the encoding of the text that is returned to a browser or other application, use the cfcontent tag. &lt;br&gt;The following example shows this use:&lt;br&gt;&lt;br&gt;&lt;cfprocessingdirective suppresswhitespace=&quot;Yes&quot;&gt;&lt;br&gt;&lt;cfcontent type=&quot;text/xml; charset=utf-16&quot;&gt;&lt;br&gt;&lt;cfxml variable=&quot;xmlobject&quot;&gt;&lt;br&gt;&lt;breakfast_menu&gt;&lt;br&gt;	&lt;food&gt;&lt;br&gt;		&lt;name quantity=&quot;50&quot;&gt;Belgian Waffles&lt;/name&gt;&lt;br&gt;		&lt;description&gt;Our famous Belgian Waffles&lt;/description&gt;&lt;br&gt;	&lt;/food&gt;&lt;br&gt;&lt;/breakfast_menu&gt;&lt;br&gt;&lt;/cfxml&gt;&lt;br&gt;&lt;!--- &lt;cfdump var=&quot;#xmlobject#&quot;&gt;---&gt;&lt;br&gt;&lt;cfset myvar=toString(xmlobject)&gt;&lt;br&gt;&lt;cfset mynewvar=replace(myvar, &quot;UTF-8&quot;, &quot;utf-16&quot;)&gt;&lt;br&gt;&lt;!---&lt;cfdump var=&quot;#mynewvar#&quot;&gt;---&gt;&lt;br&gt;&lt;cfoutput&gt;#mynewvar#&lt;/cfoutput&gt;&lt;br&gt;&lt;/cfprocessingdirective&gt;&lt;br&gt;&lt;br&gt;(By the way, the cfprocessingdirective tag prevents ColdFusion from putting white space characters in front of the XML declaration.)</description>
		<dc:creator>halL</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2004-01-30T09:03:45</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#6584">
		<title>coldfusion/6.1/htmldocs/tags-b21.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#6584</link>
		<description>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt; &lt;br /&gt;how i can chage the encoding parameter?&lt;br /&gt;like &lt;?xml version=&quot;1.0&quot; encoding=&quot;euc-kr&quot; ?&gt;</description>
		<dc:creator>0034</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-01-29T01:02:14</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#2202">
		<title>coldfusion/6.1/htmldocs/tags-b21.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#2202</link>
		<description>Precisely, since you'd have to wrap the entire area inside the CFXML tag with CFOUTPUT since the CFSETTING you indicate will hide all output not inside a CFOUTPUT tag.</description>
		<dc:creator>cliffyman</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2003-09-27T17:40:46</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#1261">
		<title>coldfusion/6.1/htmldocs/tags-b21.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#1261</link>
		<description>Addendum to above comment. My file had a &lt;cfsetting enablecfoutputonly=&quot;yes&quot; showdebugoutput=&quot;no&quot;&gt; tag above the code example. This appears to cause the 'root element missing' error message - If I remove the cfsetting tag, then there is no error.</description>
		<dc:creator>alancole</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2003-08-13T08:58:36</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#1260">
		<title>coldfusion/6.1/htmldocs/tags-b21.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b21.htm#1260</link>
		<description>This code example does not work. It produces the following error:

&quot;Document root element is missing.&quot;

Anyone know a work-around for the CFXML tag??</description>
		<dc:creator>alancole</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2003-08-13T08:36:31</dc:date>
	</item>
	</rdf:RDF>

