# XML Delete Element/Attribute action fails to find XPath

**URL:** https://www.finalbuilder.com/forums/t/xml-delete-element-attribute-action-fails-to-find-xpath/6760
**Category:** Bugs
**Created:** [April 11, 2020, 12:01am UTC](https://www.finalbuilder.com/forums/t/xml-delete-element-attribute-action-fails-to-find-xpath/6760 "2020-04-11T00:01:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![anatoliy.schmoukler](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/8dc957/32.png) [@anatoliy.schmoukler](https://www.finalbuilder.com/forums/u/anatoliy.schmoukler)
#### Post date: [April 11, 2020, 12:01am UTC](https://www.finalbuilder.com/forums/t/xml-delete-element-attribute-action-fails-to-find-xpath/6760/1 "2020-04-11T00:01:15Z")

</div>

This is not a show stopper, I used “Text find/replace” instead but Final Builder “asked” me to report this issue.

FB8.0.0.2442

Tried to use XML Delete Element/Attribute to modify a c# project (\*.csproj) file, using XPath qualifier

![XMLDelete1](https://www.finalbuilder.com/forums/uploads/default/original/2X/0/01fc4b332afea31a9b7a8af45bc585f5879176db.jpeg)

Received **XPath returned no node : //Compile[@Include=‘Services\PluginLocator.cs’]**

The XML fiddle finds this node - no issue, So XPath is fine. Same with “/Project/ItemGroup/Compile[Include=‘xxxxxxx’]”

I tried to play with settings on this screen

 ![XMLDelete2](https://www.finalbuilder.com/forums/uploads/default/original/2X/2/2a51dd1715f9ce3ef612080579bc7f2c20b9fe64.png)

But when I selected option “MS XML 4”, I received this

> MSXML Version 4 could not be loaded  
> Opening XML file C:\xxxxxxxxx\xxxxxxxxxxx.csproj  
> An Unhandled Exception occured in Action : XML Delete Element/Attribute  
> Access violation at address 27814F56 in module ‘FBXML.bpl’. Read of address 00000000  
> Please report this error to [support@finalbuilder.com](mailto:support@finalbuilder.com)  
> 27814f56 FBXML.bpl FBXMLDeleteElementAction 114 TFBXMLDeleteElementAction.Execute  
> 02f15e87 vsoft.core.bpl VSoft.Core.Actions.Base 987 TFBAction.InternalExecute  
> 02f161e3 vsoft.core.bpl VSoft.Core.Actions.Base 1065 TFBAction.DoExecute  
> 02e40b09 vsoft.core.bpl VSoft.Core.Stepping.Target.Runner 1653 TTargetRunner.StepAction  
> 02e4286d vsoft.core.bpl VSoft.Core.Stepping.Target.Runner 2330 TTargetRunner.DoRun  
> 02e3d439 vsoft.core.bpl VSoft.Core.Stepping.Target.Runner 514 TTargetRunner.HandleCommandRunFrom  
> 02e3e79d vsoft.core.bpl VSoft.Core.Stepping.Target.Runner 1021 TTargetRunner.ProcessInitialStepMode  
> 02e0dd59 vsoft.core.bpl VSoft.Core.Stepping.StepperTarget.Base 140 TStepperTargetBase.ProcessCommands  
> 02f5c37d vsoft.core.bpl VSoft.Core.Stepping.Stepper 617 TStepper.ProcessCommands  
> 02e8d2b0 vsoft.core.bpl VSoft.Core.Stepping.Target.DependencyRunner 805 TTargetDependencyRunner.StepTarget  
> 02e8b2f9 vsoft.core.bpl VSoft.Core.Stepping.Target.DependencyRunner 337 TTargetDependencyRunner.DoTargetRun  
> 02e8d6b7 vsoft.core.bpl VSoft.Core.Stepping.Target.DependencyRunner 856 TTargetDependencyRunner.HandleCommandRunFrom  
> 02e0df3c vsoft.core.bpl VSoft.Core.Stepping.StepperTarget.Base 195 TStepperTargetBase.ProcessInitialStepMode  
> 02e0dd59 vsoft.core.bpl VSoft.Core.Stepping.StepperTarget.Base 140 TStepperTargetBase.ProcessCommands  
> 02f5c37d vsoft.core.bpl VSoft.Core.Stepping.Stepper 617 TStepper.ProcessCommands  
> 030d689c vsoft.core.bpl VSoft.Core.Stepping.Project.Task 644 TProjectTask.RunTarget  
> 030d6c0b vsoft.core.bpl VSoft.Core.Stepping.Project.Task 682 TProjectTask.HandleCommandRun  
> 030d6c19 vsoft.core.bpl VSoft.Core.Stepping.Project.Task 688 TProjectTask.HandleCommandRunFrom  
> 02e0df3c vsoft.core.bpl VSoft.Core.Stepping.StepperTarget.Base 195 TStepperTargetBase.ProcessInitialStepMode  
> 02e0dd59 vsoft.core.bpl VSoft.Core.Stepping.StepperTarget.Base 140 TStepperTargetBase.ProcessCommands  
> 02f5c37d vsoft.core.bpl VSoft.Core.Stepping.Stepper 617 TStepper.ProcessCommands  
> 030d4fc2 vsoft.core.bpl VSoft.Core.Stepping.Project.Task 168 TProjectTask.CommandProcessing  
> 02994cff vsoft.core.bpl OtlTaskControl 1974 TOmniTaskExecutor.Asy\_Execute  
> 02993e7d vsoft.core.bpl OtlTaskControl 1575 TOmniTask.InternalExecute  
> 02993c3d vsoft.core.bpl OtlTaskControl 1493 TOmniTask.Execute  
> 0299be90 vsoft.core.bpl OtlTaskControl 3814 TOmniThread.Execute  
> 00470663 FinalBuilder8.exe madExcept HookedTThreadExecute  
> 00470549 FinalBuilder8.exe madExcept CallThreadProcSafe  
> 004705ae FinalBuilder8.exe madExcept ThreadExceptFrame  
> 73d862c2 KERNEL32.DLL BaseThreadInitThunk

So, there we go

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [April 11, 2020, 1:42am UTC](https://www.finalbuilder.com/forums/t/xml-delete-element-attribute-action-fails-to-find-xpath/6760/2 "2020-04-11T01:42:57Z")

</div>

Thanks for report, we’ll take a look at the error handling.

FWIW, the node not found issue will be due to namespaces

[https://www.finalbuilder.com/resources/blogs/xml-actions-and-the-xpath-returned-no-node-error2](https://www.finalbuilder.com/resources/blogs/xml-actions-and-the-xpath-returned-no-node-error2)

---

<div class="post-metadata">

### Author: ![anatoliy.schmoukler](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/8dc957/32.png) [@anatoliy.schmoukler](https://www.finalbuilder.com/forums/u/anatoliy.schmoukler)
#### Post date: [April 14, 2020, 1:55am UTC](https://www.finalbuilder.com/forums/t/xml-delete-element-attribute-action-fails-to-find-xpath/6760/3 "2020-04-14T01:55:42Z")

</div>

Thanks. It worked, as usual
