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

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

0

Please sign in to leave a comment.