Thanks for this, Rafi

I'll put the fix in the next build. Meanwhile anyone using the CF_XMLDelete
tag should replace line 26:

<CFSET temp = docElement.removeChild(deleteNode)>

with the following:

<CFSET todeleteparent = deleteNode.parentNode>
<CFSET temp = todeleteparent.removeChild(deleteNode)>

Tom

-----------------+
tom dyson
t: +44 (0)1608 811870
m: +44 (0)7958 752657
http://torchbox.com
 
> Tom, thanks again for the response. Just noticed while looking at the
> CF_XMLDelete tag's code that it has the same mistake I was making:
> 
> 22:    <!--- Select the node to be deleted --->
> 23:    <CFSET    
deleteNode=docElement.selectSingleNode("#Attributes.XPath#")>
> 24:
> 25:    <!--- Delete the node --->
> 26:    <CFSET temp = docElement.removeChild(deleteNode)>
> 
> Which would work for child nodes but not deeper nodes. This could be fixed by
> adding the additional step you provided.
> 
> Rafi




-----------------------+
cf-xml mailing list
list: [EMAIL PROTECTED]
admin: [EMAIL PROTECTED]
home: http://torchbox.com/xml

Reply via email to