Element lastNameTag = doc.createElement(pTag.getLastNameTag());
Element firstNameTag = doc.createElement(pTag.getFirstNameTag());
Element genderTag = doc.createElement(pTag.getGenderTag());
Element birthdayTag = doc.createElement(pTag.getDateOfBirthTag());
if (p.getPersonId() != null) idTag.appendChild(doc.createTextNode(p.getPersonId()));
if (p.getGroup() != null) groupTag.appendChild(doc.createTextNode(p.getGroup()));
if (p.getLastName() != null) lastNameTag.appendChild(doc.createTextNode(p.getLastName()));
if (p.getFirstName() != null) firstNameTag.appendChild(doc.createTextNode(p.getFirstName()));
if (p.getGender() != null) genderTag.appendChild(doc.createTextNode(p.getGender()));
if (p.getBirth() != null) birthdayTag.appendChild(doc.createTextNode(p.getBirth()));