Re-use existing XML nodes when possible