Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Retrieve and calculate values from XML file

From: shalit.dror@-----.---
To: NULL
Date: 2/2/2008 11:10:00 AM
I have an XML files that contains grades in different subjects from
year 2005 =13 2007 .
In the HTML file I have several drop down list that contain all the
names of the subjects. If I select for example history from the first
one ,  I get the grade for 2005 in the first field, then the grade for
2006 in the field next to it and the grade for 2007 in the third
field.
Then I go to the second drop down list , select another subject name
and get all related grades in the proper fields.
So I have a page with approximately ten drop down list.

Now I have some fields in addition that presents calculated average.
For example ,  One is an average of all the subjects per specific year
and the other is an average of specific subject to years
2005-2007.These fields are changing dynamically as soon as I select a
value from the drop down list and related grades are being retrieved
from the xml file. How can I achieve this ?

this is a short example of the xml file. The real file contains about
10 subjects.
<summary>
<subject>
<name>history</name>
<grade in 2005>85</grade in 2005>
<grade in 2006>72</grade in 2006>
<grade in 2007>67</grade in 2007>
</subject>
<subject>
<name>chemistry</name>
<grade in 2005>75</grade in 2005>
<grade in 2006>62</grade in 2006>
<grade in 2007>97</grade in 2007>
</subject>
</summary>


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent