correctly pass xml element