What is cfxml?
On 10/25/06 10:15 AM, "Rob Wilkerson" <[EMAIL PROTECTED]> wrote: > Just out of curiosity, what about using <cfxml>? It's a much more > readable method of creating an XML doc, IMO. > > On 10/25/06, Charles E. Heizer <[EMAIL PROTECTED]> wrote: >> Hello, >> So I'm playing with creating a xml file but I'm not sure what I'm doing >> wrong. The problem is that it's only displaying dn and it's text. >> >> Thanks, >> - Charles >> >> >> >> >> <cfset mydoc = XmlNew()> >> <cfset mydoc.xmlRoot = XmlElemNew(mydoc,"root")> >> <cfset i = 1> >> >> <cfset mydoc.root.XmlChildren[i] = XmlElemNew(mydoc,"objectclass")> >> >> >> <cfset mydoc.root.XmlChildren[i].XmlText = "objectclass_text"> >> >> <cfset mydoc.root.XmlChildren[i] = XmlElemNew(mydoc,"dn")> >> >> <cfset mydoc.root.XmlChildren[i].XmlText = "dn_text"> >> >> <cfoutput>#MyDoc#</cfoutput> >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258043 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4