Element dnsServersSequenceElement = XmlUtility.getElementByTagNameNS(dnsElement, "http://schemas.microsoft.com/windowsazure", "DnsServers");
if (dnsServersSequenceElement != null) {
for (int i26 = 0; i26 < com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(dnsServersSequenceElement, "http://schemas.microsoft.com/windowsazure", "DnsServer").size(); i26 = i26 + 1) {
org.w3c.dom.Element dnsServersElement = ((org.w3c.dom.Element) com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(dnsServersSequenceElement, "http://schemas.microsoft.com/windowsazure", "DnsServer").get(i26));
DnsServer dnsServerInstance = new DnsServer();
dnsInstance.getDnsServers().add(dnsServerInstance);
Element nameElement10 = XmlUtility.getElementByTagNameNS(dnsServersElement, "http://schemas.microsoft.com/windowsazure", "Name");
if (nameElement10 != null) {
String nameInstance10;
nameInstance10 = nameElement10.getTextContent();
dnsServerInstance.setName(nameInstance10);
}
Element addressElement3 = XmlUtility.getElementByTagNameNS(dnsServersElement, "http://schemas.microsoft.com/windowsazure", "Address");
if (addressElement3 != null) {
InetAddress addressInstance3;
addressInstance3 = InetAddress.getByName(addressElement3.getTextContent());
dnsServerInstance.setAddress(addressInstance3);
}
}
}
}
}