if (attValue.indexOf(':') > 0)
prefix = attValue.substring(0, attValue.indexOf(':'));
else
prefix = "";
cursor.push();
cursor.toParent();
valUri = cursor.namespaceForPrefix(prefix);
cursor.pop();
attrList.add(new AttributeImpl(name, attValue, valUri)); //add the attribute
}
hasAttributes = cursor.toNextAttribute();