
Chapter 3. Web Services integration 93
If the tag name equals the uidElem or pwdElem data, we move the tag name into
the currentName object, the tag value into the currentData object, and then call
the characters method.
Next, as shown in Example 3-10, we check to see if the tag has any attributes
and if it equals the rscElem data, we move the attribute value into the userRsc
object.
Example 3-10 startElement method: Tag attributes
if (attrs != null) {
for (int i = 0; i < attrs.getLength(); i++) {
if (attrs.getQName(i).equals(rscElem)) {
userRsc = attrs.getValue(i);
}
}
}
Finally, Example 3-11 shows the characters method. If the tag name of the data ...