Using an ajax POST request in jQuery, I get the following xml back from the server:
<?xml version="1.0"?>
<data>
<subject>
<val1>...</val1>
<val2>...</val2>
<val3>...</val3>
</subject>
<subject>
<val1>...</val1>
<val2>...</val2>
<val3>...</val3>
</subject>
...
</data>
The xml will have an arbitrary number of <subject>
tags. How do I loop through each of the subject tags, grabbing the data in val1..val3 for the corresponding tag in each iteration? Thanks.