예제 #1
0
        public void add()
        {
            XElement empElem = getXElementFromEmployee();
            XmlDb    xmlDb   = new XmlDb(xmlPath);

            xmlDb.addElement(empElem);
        }
예제 #2
0
        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);
        }