• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

XmlElemNew

Synopsis

                  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#">


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint