for (int i1 = 0; i1 < com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(imagesSequenceElement, "http://schemas.microsoft.com/windowsazure", "OSImage").size(); i1 = i1 + 1) { org.w3c.dom.Element imagesElement = ((org.w3c.dom.Element) com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(imagesSequenceElement, "http://schemas.microsoft.com/windowsazure", "OSImage").get(i1)); VirtualMachineOSImageListResponse.VirtualMachineOSImage oSImageInstance = new VirtualMachineOSImageListResponse.VirtualMachineOSImage(); result.getImages().add(oSImageInstance); String affinityGroupInstance; affinityGroupInstance = affinityGroupElement.getTextContent(); oSImageInstance.setAffinityGroup(affinityGroupInstance); String categoryInstance; categoryInstance = categoryElement.getTextContent(); oSImageInstance.setCategory(categoryInstance); String labelInstance; labelInstance = labelElement.getTextContent(); oSImageInstance.setLabel(labelInstance); String locationInstance; locationInstance = locationElement.getTextContent(); oSImageInstance.setLocation(locationInstance); double logicalSizeInGBInstance; logicalSizeInGBInstance = DatatypeConverter.parseDouble(logicalSizeInGBElement.getTextContent()); oSImageInstance.setLogicalSizeInGB(logicalSizeInGBInstance); URI mediaLinkInstance; mediaLinkInstance = new URI(mediaLinkElement.getTextContent()); oSImageInstance.setMediaLinkUri(mediaLinkInstance);
for (int i1 = 0; i1 < com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(imagesSequenceElement, "http://schemas.microsoft.com/windowsazure", "OSImage").size(); i1 = i1 + 1) { org.w3c.dom.Element imagesElement = ((org.w3c.dom.Element) com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(imagesSequenceElement, "http://schemas.microsoft.com/windowsazure", "OSImage").get(i1)); VirtualMachineOSImageListResponse.VirtualMachineOSImage oSImageInstance = new VirtualMachineOSImageListResponse.VirtualMachineOSImage(); result.getImages().add(oSImageInstance); String affinityGroupInstance; affinityGroupInstance = affinityGroupElement.getTextContent(); oSImageInstance.setAffinityGroup(affinityGroupInstance); String categoryInstance; categoryInstance = categoryElement.getTextContent(); oSImageInstance.setCategory(categoryInstance); String labelInstance; labelInstance = labelElement.getTextContent(); oSImageInstance.setLabel(labelInstance); String locationInstance; locationInstance = locationElement.getTextContent(); oSImageInstance.setLocation(locationInstance); double logicalSizeInGBInstance; logicalSizeInGBInstance = DatatypeConverter.parseDouble(logicalSizeInGBElement.getTextContent()); oSImageInstance.setLogicalSizeInGB(logicalSizeInGBInstance); URI mediaLinkInstance; mediaLinkInstance = new URI(mediaLinkElement.getTextContent()); oSImageInstance.setMediaLinkUri(mediaLinkInstance);