Fixed it to select the * item in the query specifically by using @@name. Else it would select all the children as the '*' in xpath would include everything.