473,394 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Retrieve and calculate values from XML file

I have an XML files that contains grades in different subjects from
year 2005  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>
Feb 2 '08 #1
1 2821

sh*********@gmail.com <sh*********@gmail.comwrote in
<e9**********************************@m34g2000hsb. googlegroups.com>:
I have an XML files that contains grades in different
subjects from year 2005  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 ?
You forgot to mention whether you're using server-side or
client-side processing, the platform you use for
development, and which API or set of APIs is of interest to
you.

If you're processing client-side, it's likely that the
appropriate place for this question would be
comp.lang.javascript; otherwise, the group for you language
of choice would be a better option.

--
<>There is no phenotype</>
Feb 4 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Eugfene | last post by:
I have the following function in a html file: function selectEdit(fileID, processCode, processID, fileName,fileDesc) { document.forms.recordID.value = fileID; document.forms.processor.value =...
5
by: Vanessa | last post by:
I have a question, is that any other way to retrieve data from another webpage besides using XML object? Because I am using XML object now but give me so much problems. If I used...
1
by: tomektomeknyc | last post by:
I did an interactive program to input and store employee paycheck information including total net pay into txt file. I can read it from txt file but how can i lets say modify it to calculate the...
13
by: Martin Herbert Dietze | last post by:
Hi, I need to calculate the physical length of text in a text input. The term "physical" means in this context, that I consider 7bit-Ascii as one-byte-per character. Other characters may be...
0
by: padhuwork | last post by:
Hi, I want to create a Windows DLL using VC++ 6.0 which connects to SQL Server. After establishing the connection, I want to retrieve records from table (query) and out put the recordset to a...
7
by: Mahill | last post by:
I have values in a .ASPX page that I would like to pass and retrieve in a .PHP page. I am using $_POST, but it is not retrieving any of the values. What am I doing wrong? BTW - The values I want...
2
by: vijayasb | last post by:
Hi, I have a requirement to calculate or get process wait time and process ready time.By using GetProcessTimes API we can get user time, kernel time , creation time and exit time of a process....
1
by: onequestion | last post by:
Hi.. We are providing free access to certain web pages to our customers because some sponsers will pay for that. For the convenience of the sponsers,we have to produce per url accounting to them....
6
by: LaundroMat | last post by:
Hi - I'm trying to calculate unique hash values for binary files, independent of their location and filename, and I was wondering whether I'm going in the right direction. Basically, the hash...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.