This is the XML that I want to read. I have nodes with the same name. I want to access the nodes to show countries on a combo box and currencies on a list box.
This how XML looks like:
<listaPaises>
<item>
<id>1</id>
<name>MÉXICO</name>
<suggestedCurrency>PESO MEXICANO</suggestedCurrency>
</item>
<item>
<id>4</id>
<name>ARGENTINA</name>
<suggestedCurrency>PESO ARGENTINO</suggestedCurrency>
</item>
<item>
<id>23</id>
<name>BELICE</name>
<suggestedCurrency>DÓLAR BELICEÑO</suggestedCurrency>
</item>
<item>
<id>5</id>
<name>BOLIVIA</name>
<suggestedCurrency>BOLIVIANO</suggestedCurrency>
</item>
</listaPaises>
This is what I want:
Use the standard
MSXML2.DOMDocument
COM object and itsSelectNodes
method.With your XML file, it will log:
Just use that information to populate your combo box and list box (what is a separate question, if you do not know how).
The above is based on How to update multiple XML nodes in a loop with Inno Setup?