use of com.google.gwt.xml.client.Document in project data-access by pentaho.
the class DatasourceServiceManagerGwtImpl method convertReponseToList.
private List<String> convertReponseToList(Response response) {
List<String> dataList = new ArrayList<String>();
Document document = (Document) XMLParser.parse(response.getText());
Element element = document.getDocumentElement();
Node node = element.getFirstChild();
boolean done = false;
do {
try {
dataList.add(getNodeValueByTagName(node, "Item"));
node = (node.getNextSibling() != null) ? node.getNextSibling() : null;
if (node == null) {
done = true;
}
} catch (Exception e) {
done = true;
}
} while (!done);
return dataList;
}
Aggregations