I'm trying to get IDEA to highlight errors in my XML document.
According to the "Accessing XML through Intellij IDEA" document, adding @NameValue should be enough for IDEA to highlight duplicates on those attributes marked. Also, adding a @Required annotation should make that attribute to be marked as required as well. None of this is happening on my plugin at the moment for some reason. I override getIdentityScope() on my DomFileDescription and I see that is never been called, so I don't understand why.
Also, I want the following to be marked as an error (IDEA is already resolving 'reference' to 'element' for me)
<myTag reference="unknownReference"/> <!-- This should be an error, 'unknownReference' doesn't exist -->
Thanks in advance!