Iyad Slailaty - 2009-06-21

I am parsing an XML document (containing events) and taking some required data to put them in text files so they look like log files.
i need to detect that last child so i can add a "\n" to separate events in the log file each on a line!
any suggestions please?