XML Search - Advanced Installer Community
Meena
Posts: 36
Joined: Thu Dec 12, 2013 9:07 am

XML Search

Hi Support,

How to retrieve the node values in the XML file using XML Search option. I tried it but, I didn't get the expected outcome.
Here is my XML file:

<appSettings>
<UserName>NAME</UserName>
<Password>PASSWORD</Password>
</appSettings>

I want the values of UserName & Password using the XML Search.
Can you please guide me how to get those values with a sample example.


Thanks,
Meena
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: XML Search

Hello Meena,

In order to achieve what you want, you should create the XML structure in the XML Search and then use the "Element has index in parent" locator type for the elements that you want to retrieve their texts from.

I attached a sample AIP file, so you can take a look of it.

Best regards,
Eusebiu
Attachments
XML Search sample.zip
(10.68 KiB) Downloaded 265 times
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Meena
Posts: 36
Joined: Thu Dec 12, 2013 9:07 am

Re: XML Search

Hi Eusebiu,

Thank you for your reply. I tested the attached sample. It is working for me.

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

Re: XML Search

You're always welcome Meena.

Just let us know if you have any other question.

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

Return to “Common Problems”