cicklow
New Member
Posts: 14 Reputation: 1
41 / / –
Joined: Jul 2006
|
O.P. help!!! XML
this code return null...
code: var Sec1 = 0;
var Min1 = 0;
var Hrs1 = 0;
var Days1 = 0;
var Weeks1 = 0;
var xml = new ActiveXObject("Microsoft.XMLDOM");
var file = MsgPlus.ScriptFilesPath + '/config.xml';
xml.load(file);
Sec1 = xml.selectSingleNode("/Sec/name");
Min1 = xml.selectSingleNode("/Min/name");
Hrs1 = xml.selectSingleNode("/Hrs/name");
Days = xml.selectSingleNode("/Days/name");
Weeks1 = xml.selectSingleNode("/Weeks/name");
Debug.Trace("----" + Sec1);
// and error with:
// Debug.Trace("----" + Sec1.text);
in debug windows:
----null
the config.xml
code: <Sec>
<name>0</name>
</Seg>
<Min>
<name>0</name>
</Min>
<Hrs>
<name>0</name>
</Hsr>
<Days>
<name>0</name>
</Days>
<Weeks>
<name>0</name>
</Weeks>
This post was edited on 08-01-2006 at 08:14 AM by cicklow.
|
|