String (final IElementType elementType) { ASTNode child = getNode().findChildByType(elementType); PsiElement docTypeSystem = child != null ? child.getPsi() : null; if (docTypeSystem != null) { PsiElement element = docTypeSystem.getNextSibling(); while (element instanceof PsiWhiteSpace || element instanceof XmlComment) { element = element.getNextSibling(); } //element = element.getNextSibling(); // pass qoutes if (element instanceof XmlToken && ((XmlToken)element).getTokenType() == XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN) { if (element.getTextLength() != 0) { return extractValue(element); } } } return null; }