String (XmlAttribute attribute) { StringBuilder result = new StringBuilder(); XmlTag parent = attribute.getParent(); if ((parent != null) && (parent != context)) { result.append(getPath(parent)); result.append("/"); } result.append("@"); String uri = attribute.getNamespace(); String prefix = MyPsiUtil.getAttributePrefix(attribute); if (uri.length() == 0 || prefix.length() == 0) { result.append(attribute.getLocalName()); } else { result.append(attribute.getName()); } return result.toString(); }