if (field != null) {
root = (Element) XPathEngine.getInstance().create((XMLField) getField(), root, session);
}
List extraNamespaces = new ArrayList();
NamespaceResolver nr = row.getNamespaceResolver();
for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) {
Object key = cp.next(iter, session);
if ((key != null) && key instanceof QName) {
Object value = cp.valueFromKey(key, attributeValue);
QName attributeName = (QName) key;
String namespaceURI = attributeName.getNamespaceURI();