Element arrayOfStatusInfoElement = XmlUtility.getElementByTagNameNS(responseDoc, "http://schemas.datacontract.org/2004/07/Microsoft.SqlServer.Management.Dac.ServiceTypes", "ArrayOfStatusInfo");
if (arrayOfStatusInfoElement != null) {
if (arrayOfStatusInfoElement != null) {
for (int i1 = 0; i1 < com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(arrayOfStatusInfoElement, "http://schemas.datacontract.org/2004/07/Microsoft.SqlServer.Management.Dac.ServiceTypes", "StatusInfo").size(); i1 = i1 + 1) {
org.w3c.dom.Element statusInfoElement = ((org.w3c.dom.Element) com.microsoft.windowsazure.core.utils.XmlUtility.getElementsByTagNameNS(arrayOfStatusInfoElement, "http://schemas.datacontract.org/2004/07/Microsoft.SqlServer.Management.Dac.ServiceTypes", "StatusInfo").get(i1));
StatusInfo statusInfoInstance = new StatusInfo();
result.getStatusInfoList().add(statusInfoInstance);
Element blobUriElement = XmlUtility.getElementByTagNameNS(statusInfoElement, "http://schemas.datacontract.org/2004/07/Microsoft.SqlServer.Management.Dac.ServiceTypes", "BlobUri");
if (blobUriElement != null) {
URI blobUriInstance;
blobUriInstance = new URI(blobUriElement.getTextContent());
statusInfoInstance.setBlobUri(blobUriInstance);
}
Element databaseNameElement = XmlUtility.getElementByTagNameNS(statusInfoElement, "http://schemas.datacontract.org/2004/07/Microsoft.SqlServer.Management.Dac.ServiceTypes", "DatabaseName");
if (databaseNameElement != null) {
String databaseNameInstance;
databaseNameInstance = databaseNameElement.getTextContent();
statusInfoInstance.setDatabaseName(databaseNameInstance);
}
Element errorMessageElement = XmlUtility.getElementByTagNameNS(statusInfoElement, "http://schemas.datacontract.org/2004/07/Microsoft.SqlServer.Management.Dac.ServiceTypes", "ErrorMessage");
if (errorMessageElement != null) {
boolean isNil = false;
Attr nilAttribute = errorMessageElement.getAttributeNodeNS("http://www.w3.org/2001/XMLSchema-instance", "nil");
if (nilAttribute != null) {
isNil = "true".equals(nilAttribute.getValue());
}
if (isNil == false) {
String errorMessageInstance;
errorMessageInstance = errorMessageElement.getTextContent();
statusInfoInstance.setErrorMessage(errorMessageInstance);
}
}
Element lastModifiedTimeElement = XmlUtility.getElementByTagNameNS(statusInfoElement, "http://schemas.datacontract.org/2004/07/Microsoft.SqlServer.Management.Dac.ServiceTypes", "LastModifiedTime");
if (lastModifiedTimeElement != null) {
Calendar lastModifiedTimeInstance;
lastModifiedTimeInstance = DatatypeConverter.parseDateTime(lastModifiedTimeElement.getTextContent());
statusInfoInstance.setLastModifiedTime(lastModifiedTimeInstance);
}
Element queuedTimeElement = XmlUtility.getElementByTagNameNS(statusInfoElement, "http://schemas.datacontract.org/2004/07/Microsoft.SqlServer.Management.Dac.ServiceTypes", "QueuedTime");
if (queuedTimeElement != null) {
Calendar queuedTimeInstance;
queuedTimeInstance = DatatypeConverter.parseDateTime(queuedTimeElement.getTextContent());
statusInfoInstance.setQueuedTime(queuedTimeInstance);
}
Element requestIdElement2 = XmlUtility.getElementByTagNameNS(statusInfoElement, "http://schemas.datacontract.org/2004/07/Microsoft.SqlServer.Management.Dac.ServiceTypes", "RequestId");
if (requestIdElement2 != null) {
String requestIdInstance;
requestIdInstance = requestIdElement2.getTextContent();
statusInfoInstance.setRequestId(requestIdInstance);
}
Element requestTypeElement = XmlUtility.getElementByTagNameNS(statusInfoElement, "http://schemas.datacontract.org/2004/07/Microsoft.SqlServer.Management.Dac.ServiceTypes", "RequestType");
if (requestTypeElement != null) {
String requestTypeInstance;
requestTypeInstance = requestTypeElement.getTextContent();
statusInfoInstance.setRequestType(requestTypeInstance);
}
Element serverNameElement2 = XmlUtility.getElementByTagNameNS(statusInfoElement, "http://schemas.datacontract.org/2004/07/Microsoft.SqlServer.Management.Dac.ServiceTypes", "ServerName");
if (serverNameElement2 != null) {
String serverNameInstance;
serverNameInstance = serverNameElement2.getTextContent();
statusInfoInstance.setServerName(serverNameInstance);
}
Element statusElement = XmlUtility.getElementByTagNameNS(statusInfoElement, "http://schemas.datacontract.org/2004/07/Microsoft.SqlServer.Management.Dac.ServiceTypes", "Status");
if (statusElement != null) {
String statusInstance;
statusInstance = statusElement.getTextContent();
statusInfoInstance.setStatus(statusInstance);
}
}
}
}