dakoz
Programmer
- Feb 2, 2002
- 74
hi all i have the following
<script>
var objXmlHTTP,objXmlDOM;
var aQuest;
var aAnswer = new Array(); //
var aSelected = new Array();
var count = 0;
var ansSel = 0;
var timerID;
var radIndex = -1;
var ExamDuration = 5 * 60 ;
var showtimer = 1
var NoQ = 10
how can these 3 last variables be load the from an xml file such as
<?xml version="1.0" encoding="ISO-8859-7"?>
<data>
<QUESTIONS>10</QUESTIONS>
<TIMER>1</TIMER>
<DURATION>5 * 60</DURATION>
<question id="1">
<qtext>Ðïéüò åßíáé ï áñéèìüò ôùí ãíùóôþí ÷çìéêþ óôïé÷åßùí ùò ôï 1997</qtext>
<choices>
<choice>120</choice>
<choice>112</choice>
<choice>130</choice>
<choice>92</choice>
</choices>
<answer>2</answer>
</question>
<question id="2">
<qtext>Ðïéü ÷çìéêü óôïé÷åßï åéíáé õãñü;</qtext>
<choices>
<choice>Âñþìéï</choice>
<choice>Áæùôï</choice>
<choice>ÍÜôñéï</choice>
<choice>×áëêüò</choice>
</choices>
<answer>1</answer>
</question>
</data>
can this be done?
<script>
var objXmlHTTP,objXmlDOM;
var aQuest;
var aAnswer = new Array(); //
var aSelected = new Array();
var count = 0;
var ansSel = 0;
var timerID;
var radIndex = -1;
var ExamDuration = 5 * 60 ;
var showtimer = 1
var NoQ = 10
how can these 3 last variables be load the from an xml file such as
<?xml version="1.0" encoding="ISO-8859-7"?>
<data>
<QUESTIONS>10</QUESTIONS>
<TIMER>1</TIMER>
<DURATION>5 * 60</DURATION>
<question id="1">
<qtext>Ðïéüò åßíáé ï áñéèìüò ôùí ãíùóôþí ÷çìéêþ óôïé÷åßùí ùò ôï 1997</qtext>
<choices>
<choice>120</choice>
<choice>112</choice>
<choice>130</choice>
<choice>92</choice>
</choices>
<answer>2</answer>
</question>
<question id="2">
<qtext>Ðïéü ÷çìéêü óôïé÷åßï åéíáé õãñü;</qtext>
<choices>
<choice>Âñþìéï</choice>
<choice>Áæùôï</choice>
<choice>ÍÜôñéï</choice>
<choice>×áëêüò</choice>
</choices>
<answer>1</answer>
</question>
</data>
can this be done?