com.intellij.psi.xml.XmlComment Follow
Am I missing something or is there no way to create an XmlComment using the OpenAPI? PsiElementFactory has a createCommentFromText method that returns a PsiComment but nothing to create an XmlComment and XmlComment isn't related to a PsiComment.
I've look at the 4.5 and Irida Javadocs.
Help.
Rick
Please sign in to leave a comment.
A nasty workaround that *might* work is to use something like that:
tag = factory.createTagFromText("<![CDATA[]]>");
comment = PsiTreeUtil.getChildOfType(tag, XmlComment.class);
HTH,
Sascha
Rick Maddy wrote:
That does work - thanks for the great idea.
Rick