Whatever message this page gives is out now! Go check it out!
<cfxml
variable="xmlVarName"
caseSensitive="yes|no">Attribute | Req/Opt | Default | Description |
variable | Name of the document object. | ||
caseSensitive | Optional | no |
|
MyDoc.xmlRoot.XmlAttributes.Version = "12b";
MyDoc.MyRoot.XmlAttributes["Version"] = "12b";<cfcontent type="text/xml; charset=utf-16">
<cfxml variable="xmlobject">
<breakfast_menu>
<food>
<name quantity="50">Belgian Waffles</name>
<description>Our famous Belgian Waffles</description>
</food>
</breakfast_menu>
</cfxml>
<!--- <cfdump var="#xmlobject#">--->
<cfset myvar=toString(xmlobject)>
<cfset mynewvar=replace(myvar, "UTF-8", "utf-16")>
<!---<cfdump var="#mynewvar#">--->
<cfoutput>#mynewvar#</cfoutput>
</cfprocessingdirective><cfxml variable="MyDoc">
<?xml version='1.0' encoding='utf-8' ?>
<MyDoc>
<cfif testVar IS True>
<cfoutput>The value of testVar is True.</cfoutput>
<cfelse>
<cfoutput>The value of testVar is False.</cfoutput>
</cfif>
<cfloop index = "LoopCount" from = "1" to = "4">
<childNode>
This is Child node <cfoutput>#LoopCount#.</cfoutput>
</childNode>
</cfloop>
</MyDoc>
</cfxml>
<cfdump var=#MyDoc#>