How to add new XmlTextImpl

I want to add a new line in xml. Now I know com.intellij.psi.PsiElement#add can do this, but how to create a new line XmlTag?

0

You can create XML psi element with com.intellij.psi.XmlElementFactory. Also you can use Document instead in order to manipulate with text.

0

请先登录再写评论。