I need to append a node to an xml document, but I have to first find the node to append to. In other words,
<question>
<ques text="what is...?" id="1"/>
<ques text="how many...?" id="2"/>
</question>
I need to find the ques with id = 2 and then append a child node underneath it named <answer>
Can someone help?
Thanks!
Erica
<question>
<ques text="what is...?" id="1"/>
<ques text="how many...?" id="2"/>
</question>
I need to find the ques with id = 2 and then append a child node underneath it named <answer>
Can someone help?
Thanks!
Erica