XMLField xmlField = this.convertToXMLField(key);
XPathFragment lastFragment = xmlField.getLastXPathFragment();
NamespaceResolver namespaceResolver = xmlField.getNamespaceResolver();
String namespaceURI = XMLConstants.EMPTY_STRING;
if (null != namespaceResolver) {
namespaceURI = namespaceResolver.resolveNamespacePrefix(lastFragment.getPrefix());
if (null == namespaceURI) {
namespaceURI = XMLConstants.EMPTY_STRING;
}
}
return attributes.getValue(namespaceURI, lastFragment.getLocalName());