I needed a way to filter out nodes from an XML document in CFMX. XPath is a great mechanism for finding nodes, so I decided to throw together a little UDF which would allow me to delete any nodes in an XPath expression. Here's the UDF:
If you need to delete all the nodes which have an attribute of "active" where the value is "false", you can use the follow:
The xmlObject will now have all of the inactive nodes removed from it.
Comments for this entry have been disabled.