Skip to content
⌘ NSIS Forum Archive

NsisXML(by Wizou) nsisXML::select

3 posts

Kuropatka#

NsisXML(by Wizou) nsisXML::select

Hi. I'm trying to select node from xml with below structure
<hazelcast
xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.3.xsd"
xmlns="http://www.hazelcast.com/schema/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<group>
<name>orientdb</name>
<password>orientdb</password>
</group>
</hazelcast>
How I should select <name> node?
I tryed:
- nsisXML::select '/hazelcast[@xmlns="http://www.hazelcast.com/schema/config"]/network/name'
- nsisXML::select '/hazelcast[@xmlns]/group/name'
- nsisXML::select '/hazelcast/group/name'
All of them not working.I can not understand there is the issue
Any ideas?

Is there way to ignore attributes when i select node?
Anders#
This plug-in uses MSXML so it is probably normal xpath syntax unless MSDN says otherwise.

https://extendsclass.com/xpath-tester.html might help.