How to select XML Node (with XPath)

Hi,

In an XML Document I want to set all occurrences of below node to “Value”

<verinfo_majorver>Value</verinfo_majorver>
(This is from the Delphi dproj file…)

There are multiple occurrences in the document.

What would be the correct XPath expression to select this node? (for use with an Edit XML File action.)

(PS. I am using an older version of Automise.)

Thanks
Rael

Sorry for once I didn’t preview.

The node is

<VerInfo_MajorVer> Value VerInfo_MajorVer>

(Hard to get the correct format in this editor, but you should get the idea! The node name is “VerInfo_MajorVer”)

I found this post which helps explain why standard XPath was not working for me:
https://www.finalbuilder.com/resources/blogs/postid/665/xml-actions-and-the-xpath-returned-no-node-error

It now works correctly with this XPath string:
//x:VerInfo_MinorVer

However, I am still left with a problem. When using an “Edit XML File” action, it only applies the change to the first occurrence of the term. I expected it to apply to all occurrences in the document… (Using Automise 2)

Hi Rael,

What is the behaviour your seeing with the latest build of Automise 4? You can find the latest builds located at https://www.finalbuilder.com/downloads/automise