XML Delete Element/Attribute action fails to find XPath

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

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

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
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

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

1 Like

Thanks. It worked, as usual