Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

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

$
0
0

---------------------------------------------------------------------- ----------------------------------

*** UPDATE ***

---------------------------------------------------------------------- ----------------------------------

 

OK, I am getting somewhere.  I basically am using the base XML's .xmlChildren() which returns an array of nodes.  This gives me a location reference.  When I search for a matching groupID, I capture the array index of where it is found.  I have successfully been able to reference the group that was designated for clearing, and remove the children as intended.

 

I am now working on the appendGroup/prependGroup functions, which take their children nodes and either append or prepend them into the designated location's child nodes, but CF is returning the following error:

 

WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it

 

It seems that I cannot simply insert XML into the base XML template, but instead have to import it.  Am attempting to find resources to figure out how to do that, since I'm sure that any command which brings in new data to the base XML will have this issue.


Viewing all articles
Browse latest Browse all 21760

Trending Articles



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