Dava
Posts: 11
Joined: Thu Oct 10, 2019 11:11 am

XML Search with add element

I want to store the attribute value of FweUrl in a property, how can I use XML-Search functionality to reach my objective?
Also, there are multiple add elements.



<Behaviours>
<add name="ViewFdsDocument" type="Eurosystem.SES.CoreEngine.DocumentActionBehaviours.ViewFdsDocumentActionBehaviour, Eurosystem.SES.CoreEngine.DocumentActionBehaviours" FweUrl="STONKS /^"/>
<add ........................ />
<add ........................./>
<add........................../>
</Behaviours>
Last edited by Dava on Fri Oct 25, 2019 11:39 am, edited 1 time in total.
Catalin
Posts: 7513
Joined: Wed Jun 13, 2018 7:49 am

Re: XML Search with add element

Hello,

In order to achieve this, you can proceed as it follows:

- let's consider you have your XML file in the "C:\" directory

- please go to "Search" page and create a new XML search by pressing the "New XML Search" button from the ribbon

- here, you have to replicate the structure of your XML file. In the end, the search can look like this:
xml.png
xml.png (166.09 KiB) Viewed 5302 times
Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dava
Posts: 11
Joined: Thu Oct 10, 2019 11:11 am

Re: XML Search with add element

Forgot to mention there are multiple add elements
Catalin
Posts: 7513
Joined: Wed Jun 13, 2018 7:49 am

Re: XML Search with add element

Hello,

If there are multiple elements, then you can add them in Advanced Installer and configure the search accordingly. For instance, like this:
xml2.png
xml2.png (171.8 KiB) Viewed 5294 times
Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”