XML Bug?

A friend of mine just recently wrote me:

-



I am having problem with my XML file that has the included DTD. The XML looks like this:

It has a problem resolving tags , and IDEA says 'Element is not allowed here' and it is highlighted in red. . The extension DTD looks like this : %definePropertyElements; %defineClassElements; ]]>
%defineGroupElements;
<!ELEMENT extension (import, inModule)>
<!ATTLIST extension
name CDATA #REQUIRED
neverSave %boolean;
<!ELEMENT import EMPTY>
<!ATTLIST import
extension CDATA #IMPLIED
module CDATA #IMPLIED
<!ELEMENT inModule (inClass | class | group | inGroup | inGroupViewContents | event)
+>
<!ATTLIST inModule
name CDATA #REQUIRED

<!ELEMENT inClass (lookupKey | inField | field | derived | index |
searchIndex | trigger | defaulter | deleteTrigger |
classVariant | inClassVariant)*>

<!ATTLIST inClass
name CDATA #REQUIRED
datafile CDATA #IMPLIED

-



As you can see the red/unresolved tags are defined in DTDs which are included into
this DTD as well.
But IDEA is not able to resolve this.

When open up this in XMLspy, or in Eclipse everything works without problem.

IDEA Build 2242....

0000000000000000000000000000000000000000000

Anyone?


Please sign in to leave a comment.