if (p.getHomeTel() != null) contactHomeTelTag.appendChild(doc.createTextNode(p.getHomeTel()));
if (p.getWorkTel() != null) contactWorkTelTag.appendChild(doc.createTextNode(p.getWorkTel()));
if (p.getFax() != null) contactFaxTag.appendChild(doc.createTextNode(p.getFax()));
if (p.getCellTel() != null) contactCellTag.appendChild(doc.createTextNode(p.getCellTel()));
if (p.getEmail() != null) contactEmailTag.appendChild(doc.createTextNode(p.getEmail()));
if (p.getWebpage() != null) contactHomepageTag.appendChild(doc.createTextNode(p.getWebpage()));
root.appendChild(idTag);
root.appendChild(groupTag);
root.appendChild(lastNameTag);