Subject:Increment a variable Author:Michael Kwee Date:15 Jan 2007 02:06 AM Originally Posted: 15 Jan 2007 02:04 AM
Hi there,
I am trying to increment a avariable and i understand that there are a couple of examples using recursive function already posted. However, these examples do not meet my requirement.
What i wanted to do is to parse a xml document and when it hits an attribute OEServiceStatus, it will perform checks on the first and second child nodes. This OEServiceStatus is recurring under a parent node FsActivityStep.
However, i was not able to increment the variable count ($dummy) even by calling a recursive function.
Subject:Increment a variable Author:(Deleted User) Date:15 Jan 2007 03:59 AM
Hi Michael,
if I have understood correctly, you are trying to use a variable to pick the right element from the source; but if the data is related to the subtree where the OEServiceStatus node resides, you can access it using a relative XPath, like in