H
harry.webber722
Hi there,
I have an XML string which I would like to extract some data from. Is
there any way I can do that?
For example, the XML data is as follows:
<student>
<name>Harry</name>
<result>
<subject>Math</subject>
<score>90</score>
</result>
<result>
<subject>Literature</subject>
<score>78</score>
</result>
</student>
Is there any way I can use javascript to extract the name and each of
the subject and score?
I can then use the values to display on a table using dynamic HTML
which I know how to do.
I just don't know how to handle the XML.
Thanks.
I have an XML string which I would like to extract some data from. Is
there any way I can do that?
For example, the XML data is as follows:
<student>
<name>Harry</name>
<result>
<subject>Math</subject>
<score>90</score>
</result>
<result>
<subject>Literature</subject>
<score>78</score>
</result>
</student>
Is there any way I can use javascript to extract the name and each of
the subject and score?
I can then use the values to display on a table using dynamic HTML
which I know how to do.
I just don't know how to handle the XML.
Thanks.