Deletes every child element with a given name from an XML node and returns the node.
xmlDelete(xmlNode, key)
→ returns xml
xmlObject, but CF2025 only accepts xmlNode as a named argument.
childName, but CF2025 only accepts key as a named argument.
Both a elements are removed, leaving only b.
xmlDelete(xmlParse("<root><a/><b/><a/></root>").root, "a").xmlChildren[1].xmlName
Expected Result: b
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.