Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to do 'SUM' in XML?

Status
Not open for further replies.

praise1234

IS-IT--Management
Sep 26, 2005
3
0
0
US
Hey there,
I am very new to XML. I have four fields in the database tables which needs to add up to have a total field by using XML language. I wasn't sure how to do it at all.
Please advice.

Thanks,-G
 
the xml language you will be looking for is called xpath, the example uses xpath with xsl, sommat like :


Code:
<xsl:value-of select="sum(//myroot/myelements/@addthisup)"

hth

simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top