I've been having some issues with recursive summing and have been
unsuccessful at getting some of the solutions I've seen online to work.
I'm hoping that perhaps somebody in the newsgroup will be able to shed
some light on the issue.
I have the following XML:
<departmentStor e>
<name>S-Mart</name>
<department>
<name>Electroni cs</name>
<section>
<name>Video Games</name>
<system>
<name>Xbox 360</name>
<manufacturer>M icrosoft</manufacturer>
<price>$399.9 9</price>
<gameLibrary>
<game>
<name>Call of Duty 3</name>
<genre>Shoote r</genre>
<publisher>Acti vision</publisher>
<developer>Trey arch</developer>
<price>$59.99 </price>
</game>
<game>
<name>Fight Night Round 3</name>
<genre>Sports </genre>
<publisher>Elec tronic Arts</publisher>
<developer>EA Chicago</developer>
<price>$59.99 </price>
</game>
<game>
<name>Rainbow Six Vegas</name>
<genre>Shoote r</genre>
<publisher>Ubis oft</publisher>
<developer>Ubis oft Montreal</developer>
<price>$59.99 </price>
</game>
<game>
<name>Viva Pinata</name>
<genre>Simulati on</genre>
<publisher>Micr osoft</publisher>
<developer>Rare </developer>
<price>$49.99 </price>
</game>
</gameLibrary>
</system>
</section>
</department>
</departmentStore >
departmentStore , department, section, system, and gameLibrary all have
more children nodes than what are shown.
What I want to do is get the sum of all video game prices for a
specific system and display it when applying the template that matches
"system."
Any help would be very much appreciated. Thanks!
Nathaniel