I have the following xml that I need to place element names and values into a database
<questionnaireData>
<data>
<name>Dave</name>
<jobRole>Developer</jobRole>
<q1>my response</q1>
</data>
<data>
<name>John</name>
<jobRole>Sales</jobRole>
<q10>another response</q1>
</data>
</questionnaire>
The problem I have is decoding through the document with classic asp.
I have
For Each entry In xml.selectNodes("questionnaireData/data")
which correctly gives me the two nodes in the examples, but then for each of these 2 nodes I need to iterate through the contents to update my database. The node names at this level could be very varied.
Could anyone help me to loop through the contents of the "data" node and get at the node name and value for each of the children.
Many thanks