Change xml attribute value

I need to replace the xml attribute value (in the current editor, in the specified position). Is the code below correct?

How to modify the xml attribute value through corresponding PsiElement?

1 comment
Comment actions Permalink

I use following code in my plugin.
((XmlAttribute) xmlAttributeValue.getParent()).setValue("");


Please sign in to leave a comment.