What is proper way to edit xml tag?

 
What is proper way to use com.intellij.psi.xml.XmlTag.setAttribute()?
  
This does not work for me
 
ApplicationManager.getApplication().runWriteAction(new Runnable() {
  @Override
  public void
run() {
    xmlTag.setAttribute(key, value);
  }
});
0
1 comment

So what happens when you do that?


0

Please sign in to leave a comment.