VladDyve
Posts: 3
Joined: Wed Apr 15, 2015 1:39 pm

Adding Node to an existing xml file.

Hello,

I want to be able to add a new node to an exisitng xml file if is not present. The nodes doesn't have attributes, just a text.<namex>0</namex>. How this can be done?
Or if i need to delete multiple nodes at the install and add other ones? Is this posible?

Thank you,

Vlad
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Adding Node to an existing xml file.

Hi Vlad,

In order to configure the related XML file you can use our XML support. Please take a look on the XML Files Page article with related information for hints and guidance.
Through the Edit XML File Dialog you need to create the XML structure to the new node that you want to add in the .XML file.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
VladDyve
Posts: 3
Joined: Wed Apr 15, 2015 1:39 pm

Re: Adding Node to an existing xml file.

Hi,

I can add the node to an existin xml file now. The problem is that the other nodes in the xml file on the machine have other values than the ones in the xml that cames with the package. I want to add the node to the existing file without rewriting the fileor existing values. I uncheck for each node from the xml :create element ,if the element is found or remove element. How I can keep the existing value from the machine?

Return to “Building Installers”