B
Bruce
Can I supply a path to a given node and get the value in one call:
ie prefs.getInt("/node1/node2/entry", -1);
Or, do I need to traverse to the node first, then get the value:
Preferences node = prefs.node("/node1/node2");
node.getInt("entry", -1);
It seems I have to do it in two steps unless I am missing something.
That's what I would like to verify. (If that's the case, that's too
bad. I was hoping I could use xpath as well).
ie prefs.getInt("/node1/node2/entry", -1);
Or, do I need to traverse to the node first, then get the value:
Preferences node = prefs.node("/node1/node2");
node.getInt("entry", -1);
It seems I have to do it in two steps unless I am missing something.
That's what I would like to verify. (If that's the case, that's too
bad. I was hoping I could use xpath as well).