patch for xml element