When reading nodes from an XML document, how do you detect wether or not the current node is the last one? I was thinking something like comparing the current node to lastChild, but how do I specify the current node? Could I just compare the variable holding the node to lastChild?
TIA,