Gambit_NI
Active member
i have the following XML file which contains settings i want to load into my application. but im having trouble reading the correct nodes. how do i get it to move to the appropriate node. ?
<?xml version="1.0" encoding="utf-8" ?>
- <settings>
<server>192.168.1.16</server>
<timeout>15000</timeout>
</settings>
basically i wanna do something like this
With SettingsReader
.Namespaces = True
.MoveToContent()
.MoveToElement("server") - this is the bit i cant do!
.Read()
str_Settings = .Value
.MoveToElement("timeout") - and again!
.Read()
g_int_TimeOut = CType(.Value, Integer)
.Close()
End With
any help would be greatly appreciated!
Cheers,
Craig
<?xml version="1.0" encoding="utf-8" ?>
- <settings>
<server>192.168.1.16</server>
<timeout>15000</timeout>
</settings>
basically i wanna do something like this
With SettingsReader
.Namespaces = True
.MoveToContent()
.MoveToElement("server") - this is the bit i cant do!
.Read()
str_Settings = .Value
.MoveToElement("timeout") - and again!
.Read()
g_int_TimeOut = CType(.Value, Integer)
.Close()
End With
any help would be greatly appreciated!
Cheers,
Craig