public String removeDescendantNode(String locationpath){
		boolean flag = true;
		
		while (flag){
			if (locationpath.contains("descendant-or-self::node()/child::")){	
				locationpath = locationpath.replace("descendant-or-self::node()/child::", "descendant-or-self::");			
			}else{
				flag = false;
			}
		}
		return locationpath;
	}