May be you could do as the following:
var match :XMLList = xml..*.(descendants('activity').length() == 0 && name() != null && name() == 'activity'); Panhathai.
May be you could do as the following:
var match :XMLList = xml..*.(descendants('activity').length() == 0 && name() != null && name() == 'activity'); Panhathai.