public void edit() { XmlDb xmlDb = new XmlDb(xmlPath); XElement positionBeforeEdit = xmlDb.getElement("Position", "Id", Id.ToString()); XElement positionAfterEdit = getXElementFromPosition(); xmlDb.editElement(positionBeforeEdit, positionAfterEdit); }
public void edit() { XmlDb xmlDb = new XmlDb(xmlPath); XElement employeeBeforeEdit = xmlDb.getElement("Employee", "Id", Id.ToString()); XElement employeeAfterEdit = getXElementFromEmployee(); xmlDb.editElement(employeeBeforeEdit, employeeAfterEdit); }