Edit XML file - Advanced Installer Community
kumarkvs09
Posts: 6
Joined: Tue Apr 14, 2015 7:52 am

Edit XML file

Hi

To Capture the Sql Username and Password I am trying to import and edit the XML file. i have imported the XML file from Files and folder and in edit XML file, I created Username=[USERNAME_PROP] and Password=[PASSWORD_PROP] in Attributes.

Config file:
<properties>
<username>root</username>
<password>root</password>
</properties>

I have given username=root and Password= test in Sql dialogue and in Program files folder the Config file looks to be as

<properties username ="root" password="test">
<username>root</username>
<password>root</password>
</properties>

Here i want the node to be replaced and it should be displayed as

<properties>
<username>root</username>
<password>test</password>
</properties>

Thanks for your help.

Regards
Kumar
Attachments
Properties.jpg
Properties.jpg (82.62 KiB) Viewed 2599 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Edit XML file

Hi Kumar and welcome to our forums.

In order to achieve this, you need to create two new elements under the "properties" element and name them "username" and "password", then use their related properties in the "Text" field from the "Element Settings" tab (as displayed in the attached image).

Best regards,
Eusebiu
Attachments
XML Settings.png
XML Settings.png (54.09 KiB) Viewed 2578 times
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kumarkvs09
Posts: 6
Joined: Tue Apr 14, 2015 7:52 am

Re: Edit XML file

Hi Eusebiu

I created Username and Password and added properties for the same and it worked. Thank you so much for the support.


Regards
KVS Kumar
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Edit XML file

You're welcome Kumar. I'm glad it worked.

Just let us know anytime you have a problem.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”