[COLOR=black]I have an interface that is being built using an XML doc. The XML follows this structure:[/COLOR]
[COLOR=black][/COLOR]
[FONT=Courier New][SIZE=2][COLOR=black]<?xml version=“1.0”?>
[/COLOR][/SIZE][/FONT][COLOR=black][FONT=Courier New]<[/FONT][FONT=Courier New]HealthLearning xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=“CourseImportSchema.xsd”>
[/FONT][/COLOR][FONT=Courier New][COLOR=black]<Course>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<CourseTitle>Course Title goes here</CourseTitle>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<CourseGroup>Healthcare Education</CourseGroup>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<CourseURL>#</CourseURL>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<CourseAbbrev>HC</CourseAbbrev>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<CourseNotes>Notes to be read by Application</CourseNotes>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<CourseCredit1Type>CREDIT HOURS</CourseCredit1Type>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<CourseCredit1Value>0.00</CourseCredit1Value>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<CourseCredit2Type>CEUS</CourseCredit2Type>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<CourseCredit2Value>0.00</CourseCredit2Value>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]</Course>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<Test>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<TestTitle>Healthcare</TestTitle>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<TestType/>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<TestQuestionNrPresented>9</TestQuestionNrPresented>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<TestRequired>1</TestRequired>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<TestQuestionsRandom>1</TestQuestionsRandom>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<TestPreTestRequired>0</TestPreTestRequired>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<TestPreTestMinimum/>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<TestPostTestMinimum>80</TestPostTestMinimum>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<TestEquivalencyMinimum/>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<TestMaxTimeAllowed>0</TestMaxTimeAllowed>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<TestForceContentReview>0</TestForceContentReview>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<TestRecordGrade>1</TestRecordGrade>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]</Test>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<Questions>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<Question>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<QuestionPrompt>This is where questions go?</QuestionPrompt>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<QuestionSequence>1</QuestionSequence>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<QuestionCorrectAns>4</QuestionCorrectAns>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<QuestionSubject>Healthcare</QuestionSubject>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<QuestionSurvey>0</QuestionSurvey>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<QuestionRequired>1</QuestionRequired>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<QuestionExplanation>Question explanation or feedback.</QuestionExplanation>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<Answers>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<Answer>a</Answer>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<Answer>b</Answer>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<Answer>c</Answer>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]<Answer>d</Answer>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]</Answers>[/COLOR]
[/FONT][FONT=Courier New][COLOR=black]</Question>[/COLOR][/FONT]
[FONT=Courier New][COLOR=black]</Questions>[/COLOR][/FONT]
[FONT=Courier New][COLOR=black]</HealthLearning>[/COLOR][/FONT]
[COLOR=black][/COLOR]
[COLOR=black]I want to place the QuestionPrompts into a dynamic text field as well as the corresponding Answers into radio buttons. I currently have a combobox that populates from this xml to navigate between the questions. The code looks like this:[/COLOR]
[COLOR=black][/COLOR]
[COLOR=black]my_xml = new XML();
my_xml.ignoreWhite = true;[/COLOR]
[COLOR=black]my_xml.onLoad = function ()
{
var info = this.firstChild.childNodes[2].childNodes;
for (var i=0; i<info.length; i++) {
ComboBox.addItem( {label:"Question "+info*.childNodes[1].childNodes[0].nodeValue, data:i} );
}[/COLOR]
[COLOR=black]}
my_xml.load(“test.xml”);[/COLOR]
Someone tried to explain to me that I could use the data:i value to navigate but I’m not sure what they meant. Any suggestions that could help populate my text field and radio buttons? This all has to be built dynamically with the combobox for navigation.