|
|
#1 |
|
Junior Member
Join Date: Feb 2009
Posts: 3
|
XML Plugin Edit Attribute and Value of a Node
Hello everybody, i use NSIS 2.43 with XML Plugin v2.0
and I have big trouble to edit a xml file. The file looks like the following example. PHP Code:
the following code and that works. code: But to edit the second node I have the problem that I can't edit the attribute and the value at the same time, if I edit only the attribute it works and if I edit only the value it works too but not both. code: I don't know where the problem is. |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Feb 2009
Posts: 3
|
At the moment nothing works, so my new question how can i edit a xml file in my installer?
The layout of the xml file: PHP Code:
the attribute at "remoteDataDir" and the node value of "remoteDataDir". Tell me how I can do it! |
|
|
|
|
|
#3 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
That plug-in should work. Try using GoTo again after setting the attribute and before setting the node value.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Feb 2009
Posts: 3
|
Now everything works. The problem was that i didn't need use "FirstChild" before use "SetAttribute" but to change the nodevalue I must use the "FirstChild" command.
code: |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|