I'm having an issue with XML validation using IntelliJ IDEA 10.5.2 (#IU-107.587). I have an XML file that is constructed as follows (just the first few lines are shown):
-- BEGIN EXAMPLE --
<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE ONIXMessage SYSTEM "http://www.editeur.org/onix/2.0/reference/onix-international.dtd">
-- END EXAMPLE --
IntelliJ asks to fetch the DTD resource and does so without a problem. However, all tags in the XML file are marked as red. The topmost tag's error message is "Element ONIXMessage" must be declared and all other tags have the error message "Cannot resolve symbol 'Header' or whatever the tag name is.
Within the DTD there is an Entity tag with a SYSTEM resource declaration like so:
<!ENTITY % MainModule SYSTEM "onix-international.elt">
I don't believe that IntelliJ is fetching this resource and hence the problem. I've tried replacing it with the full url (http://www.editeur.org/onix/2.0/reference/onix-international.elt
) but that doesn't work. I've also allowed IntelliJ to "Convert path to absolute", which it does properly, but still no changes in the XML file validation.
Can anyone help here?