I'm not sure if this is the best place to post, but perhaps you can help me.
I have an xml document which has a node/element (are they the same thing?) which is currently just <userinputs />.
I want add multiple elements to that element like so
<userinputs>
<input question="Name" answer="John" />
<input question="Age" answer="17" />
<input question="Sex" answer="Male" />
</userinputs>
I assume I have to do a foreach loop to get to the element userinputs then I have to do another loop for each item in the arraylist and at every itteration I must create a new element and add it to the userinputs element...
I have an xml document which has a node/element (are they the same thing?) which is currently just <userinputs />.
I want add multiple elements to that element like so
<userinputs>
<input question="Name" answer="John" />
<input question="Age" answer="17" />
<input question="Sex" answer="Male" />
</userinputs>
I assume I have to do a foreach loop to get to the element userinputs then I have to do another loop for each item in the arraylist and at every itteration I must create a new element and add it to the userinputs element...