How get syntax errors list

Hi!

I need synсhronously get syntax errors list of psiFile
For example, we are have next XML document:

<?xml version="1.0"?>
<a
<b></b>
</a>

There are no second bracket for tag "a". In code editor some code inspector mark this as error and show a message "Tag start is not closed". How can i use this mechanism manualy synchronousely for particural PsiFile? We spent about week in order to find soulution. Thanks.

Please sign in to leave a comment.