I do have a question about Object data processing. In some cases, I can’t link a datasource to a widget but have to process the Object data to extract information. For example,
for (int i = 1; i < 10; i++) {
String prefix = "//projects/project[" + i + "]/";
String context = XMLTools.selectString(data, prefix + "@context");
if (context == null)
break;
if (context.equals("ThinkSpace")) {
String sid = XMLTools.selectString(data, prefix + "@id");
String title = XMLTools.selectString(data, prefix + "@title");
String type = XMLTools.selectString(data, prefix + "@model");
spaces.add(new Space(sid, title, type));
}
}
This seems rather klunky. XMLTools provides the ability to get nodes but then I am not sure how to process the nodes. Is there an easier/better way?
Pete Boysen (pbo...@iastate.edu)
Information Technology Services
209 Durham
(515)294-6663