if ( nodeName == null || parentNode == null) return null;
int begpos = nodeName.indexOf('[');
int endpos = nodeName.indexOf(']');
if ( begpos > 0 && endpos > begpos && endpos < nodeName.length() ) {
String indStr = nodeName.substring(begpos+1,endpos);
<BUG>doDebug(d,"Index String = "+ indStr);
</BUG>
nodeName = nodeName.substring(0,begpos);
<BUG>doDebug(d,"New Nodename="+nodeName);
</BUG>
Integer iVal = new Integer(indStr);

if ( nodeName == null || parentNode == null) return null;
int begpos = nodeName.indexOf('[');
int endpos = nodeName.indexOf(']');
if ( begpos > 0 && endpos > begpos && endpos < nodeName.length() ) {
String indStr = nodeName.substring(begpos+1,endpos);
if ( DF ) doDebug(d,"Index String = "+ indStr);
nodeName = nodeName.substring(0,begpos);
if ( DF ) doDebug(d,"New Nodename="+nodeName);
