May be you could do as the following:

var match :XMLList = xml..*.(descendants('activity').length() == 0 && 
                                name() != null && name() == 'activity');

Panhathai.

Reply via email to