You're going to kick yourself ;-) It looks like you forgot to double up the quotes in your XPath expression to escape them from CF. Try this:
<CFSET del_node = objXMLDOM.SelectSingleNode("/VFPData/r_stdpara[stdid=""#attributes.stdid#""] ")> -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, 28 January 2005 5:09 a.m. To: CF-Talk Subject: Error using MSXMLDOM I'm experimenting with using the MSXMLDOM. I getting an error I cant get around.. Here's the code <!--- create instance of MSXMLDOM and load Referencedata.xml File ---> <cfobject type="com" name="objXMLDOM" class="Microsoft.XMLDOM" action="create"> <cfset objXMLDOM.async = false> <cfset objXMLDOM.Load("c:\inetpub\wwwroot\xmledit\ReferenceDataWorking.xml")> <!--- delete nodes in question ---> <CFSET del_node = objXMLDOM.SelectSingleNode("/VFPData/r_stdpara[stdid="#attributes.stdid#"]") > <CFSET para_node = objXMLDOM.SelectSingleNode("/VFPData")> <CFSET para_node.removeChild(del_node)> <CFSET objXMLDOM.SAVE("c:\inetpub\wwwroot\xmledit\ReferenceDataWorking.xml")> <!--- end XML Delete ---> And here's the error Invalid CFML construct found on line 20 at column 89. ColdFusion was looking at the following text: <p>#</p> <p>The CFML compiler was processing:<ul><li>an expression beginning with "objXMLDOM.SelectSingleNode", on line 20, column 35.This message is usually caused by a problem in the expressions structure. <li>a CFSET tag beginning on line 20, column 18.</ul> The error occurred in C:\inetpub\wwwroot\Docwf\StandardParagraphs\act_KillPG.cfm: line 20 Called from C:\inetpub\wwwroot\Docwf\StandardParagraphs\fbx_Switch.cfm: line 55 Called from C:\inetpub\wwwroot\Docwf\fbx_fusebox30_CF50.cfm: line 241 Called from C:\inetpub\wwwroot\Docwf\fbx_fusebox30_CF50.cfm: line 1 Called from C:\inetpub\wwwroot\Docwf\fbx_fusebox30_CF50.cfm: line 1 Called from C:\inetpub\wwwroot\Docwf\index.cfm: line 37 18 : <cfset objXMLDOM.Load("c:\inetpub\wwwroot\xmledit\ReferenceDataWorking.xml")> 19 : <!--- delete nodes in question ---> 20 : <CFSET del_node = objXMLDOM.SelectSingleNode("/VFPData/r_stdpara[stdid="#attributes.stdid#"]") > 21 : <CFSET para_node = objXMLDOM.SelectSingleNode("/VFPData")> 22 : <CFSET para_node.removeChild(del_node)> -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.0 - Release Date: 01/27/2005 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191988 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54