I'm having a hard time understanding XPaths. Would someone mind helping me understand it?
Here is the xml file: (I've added hyphens for spacing)
<?xml version="1.0" encoding="utf-8"?>
<Array>
- <PropertyNameValue>
- - <Value Internal_Type="String">C:\User\Jeff\Videos</Value>
- - <Name>Folders_VideoCapturesFolder</Name>
- </PropertyNameValue>
</Array>
In this example, I need "C:\User\Jeff\Videos" to change to %PortableApps.comVideos% using a filewrite operation.
I've looked at the following articles in my attempt to get this to work properly:
https://en.wikipedia.org/wiki/XPath
https://portableapps.com/manuals/PortableApps.comLauncher/topics/xml.html
https://portableapps.com/manuals/PortableApps.comLauncher/ref/launcher.i...
And my failed attempt:
[FileWrite1]
File=%PAL:DataDir%\Settings\Settings.xml
Type=XML attribute
XPath=/Array/PropertyNameValue[@Name="Folders_VideoCapturesFolder"]
Attribute=value
Value=%PortableApps.comVideos%
If I can see what I'm doing wrong, I can learn from it and fix the others that do not work.
Thanks,
Jeff Savage ~ BetaLeaf