Quantcast
Channel: Adobe Community : Discussion List - ColdFusion
Viewing all articles
Browse latest Browse all 6243

How do I modify XML? I know where it is, but cannot figure out how to modify it

$
0
0

I have this XML data, and I know there is a node called <group> that has an attribute of tplID with a value of 'alpha'.  There ARE other <group> nodes at the same (and different) hierarchy level, but they should at least have a different value in their 'tplID' attribute.

 

Thing is, how would I go about, say, removing every child node from the XML document for the node that is specifically : <group tplID="alpha"> ?

 

I can target him with XPath like <cfset test = xmlSearch( xmlDocObject, '/template//group[@tplID="alpha"]' ) />

 

But this just returns me an array containing the XML that matches that.  Any ideas?


Viewing all articles
Browse latest Browse all 6243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>