GetListItemsResponse.GetListItemsResult result = listsoap.getListItems(listName, "", msQuery, viewFields, null, queryOptions, webID);
Object listResult = result.getContent().get(0);
if(listResult != null){
Element element = (Element)result.getContent().get(0);
NodeList nl = element.getElementsByTagName("z:row");
System.out.println("\n=> " + nl.getLength() + " results from SharePoint Online\n");
for(Integer i = 0; i < nl.getLength(); i++){
NamedNodeMap attributes = nl.item(i).getAttributes();
System.out.println(attributes.getNamedItem("ows_Title").getNodeValue());
}
This is the code currently being used. However I am having to specify the internal name explicitly in order to retrieve its data. Isn't there a way to retrieve all the internal names of the SharePointList via Java?