Announcement

Collapse
No announcement yet.

NsisXML(by Wizou) nsisXML::select

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NsisXML(by Wizou) nsisXML::select

    Hi. I'm trying to select node from xml with below structure
    code:
    <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:
    code:
    - 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?

  • #2
    This plug-in uses MSXML so it is probably normal xpath syntax unless MSDN says otherwise.

    https://extendsclass.com/xpath-tester.html might help.
    IntOp $PostCount $PostCount + 1

    Comment


    • #3
      Thank you, Anders!

      In my case works:
      nsisXML::select "//*[local-name()='port']"

      Comment

      Working...
      X