public void add() { XElement empElem = getXElementFromEmployee(); XmlDb xmlDb = new XmlDb(xmlPath); xmlDb.addElement(empElem); }
public void add() { XElement posElem = new XElement("Position"); XAttribute id = new XAttribute("Id", Id); XAttribute name = new XAttribute("Name", Name); posElem.Add(id, name); XmlDb xmlDb = new XmlDb(xmlPath); xmlDb.addElement(posElem); }