I see a lot of people here are trying to help each other out with the XML parsing issues. I can connect to databases just fine, but connecting to an XML file is killing me. Let me give a rundown of what I'm trying to achieve.
The XML file contains:
<?xml version="1.0"?>
<data>
?<question id="1">
? ?<text>What is your sex?</text>
? ?<choices>
? ? ?<choice>Male</choice>
? ? ?<choice>Female</choice>
? ?</choices>
?</question>
and so on..
Basically, the user has to take a survey. The questions will be read from an xml file, with the question itself being assigned to a label. Next, the possible answer choices are read and are assigned to radio buttons. I've attached a picture of the form to help other people get:Dhe picture :D
Once I can get this connected, I could make the parsing recursive such that it keeps showing questions till the xml file is complete. I'd appreciate a point in the right direction.
At the moment, I am having absolutely no luck when it comes to getting connected>connected and I am going crazy. Let alone the fact that I have to later write back the user response to a different XML file...'Tis the life:no:an intern :no:
Question
Master Xen
I see a lot of people here are trying to help each other out with the XML parsing issues. I can connect to databases just fine, but connecting to an XML file is killing me. Let me give a rundown of what I'm trying to achieve.
The XML file contains:
Basically, the user has to take a survey. The questions will be read from an xml file, with the question itself being assigned to a label. Next, the possible answer choices are read and are assigned to radio buttons. I've attached a picture of the form to help other people get:Dhe picture :D
Once I can get this connected, I could make the parsing recursive such that it keeps showing questions till the xml file is complete. I'd appreciate a point in the right direction.
At the moment, I am having absolutely no luck when it comes to getting connected>connected and I am going crazy. Let alone the fact that I have to later write back the user response to a different XML file...'Tis the life:no:an intern :no:
Link to comment
Share on other sites
4 answers to this question
Recommended Posts