How to read XML node's value in InstallScript

690 Views Asked by At

I have following XML file.

<Configuration>
    <Config1 connection="SQL">SampleData<Config1>
</Configuration>

I want to read the value "SampleData" of node Config1 in InstallScript function. I tried properties text, value, nodevalue. But none of it worked. I can read attribute connection's value. But how I can read node's value "SampleData"?

1

There are 1 best solutions below

0
On

Help Documentation: Maybe try this help file documentation:

There are several other places in the help file that XML issues are discussed, but that should get you going.


Installscript: I suppose you could go Installscript on it. I would not recommend it. I don't have any samples for you, but pillaging github.com giveth the following. No idea if it works, but maybe give it a go. No guarantees at all - at your own risk.


Some Further Links: