if(servProv.getProviderSite() != null) {
xml.indentElement("ows:ProviderSite").attribute("xlink:href", servProv.getProviderSite()).endElement();
}
ServiceContact servCont = servProv.getServiceContact();
if(servCont != null) {
xml.indentElement("ows:ServiceContact");
appendTag(xml, "ows:IndividualName", servCont.getIndividualName(), null);
appendTag(xml, "ows:PositionName", servCont.getPositionName(), null);
xml.indentElement("ows:ContactInfo");
if(servCont.getPhoneNumber() != null || servCont.getFaxNumber() != null) {
xml.indentElement("ows:Phone");
appendTag(xml, "ows:Voice", servCont.getPhoneNumber(), null);
appendTag(xml, "ows:Facsimile", servCont.getFaxNumber(), null);
xml.endElement();
}
xml.indentElement("ows:Address");
appendTag(xml, "ows:DeliveryPoint", servCont.getAddressStreet(), null);
appendTag(xml, "ows:City", servCont.getAddressCity(), null);
appendTag(xml, "ows:AdministrativeArea", servCont.getAddressAdministrativeArea(), null);
appendTag(xml, "ows:PostalCode", servCont.getAddressPostalCode(), null);
appendTag(xml, "ows:Country", servCont.getAddressCountry(), null);
appendTag(xml, "ows:ElectronicMailAddress", servCont.getAddressEmail(), null);
xml.endElement("ows:Address");
xml.endElement();
xml.endElement();
}