August 2003
Intermediate to advanced
1140 pages
68h 45m
English
XmlElemNew
XmlElemNew(XmlDocObj, ChildName)Creates an empty child element in the specified XML document object.
The following example creates a new element named
Company in an XML document object called
EmployeeXML. The XML document object is then
output to the browser using cfdump:
<cfset EmployeeXml = XMLNew('no')>
<cfset EmployeeXml.XmlRoot = XmlElemNew(EmployeeXml,"company")>
<cfdump var="#EmployeeXml#">