XML Has Different Errors on Different Boxes

At work on my Win 2000 desktop (without admin privileges), IDEA hates my XML files. Anything with a DTD, like the struts-config.xml, is marked all over in red - starting with the first element. It says "Element struts-config must be declared". But the first element is struts-config. The DTD has been downloaded with Fetch Resource (which is very handy). This is the same for hibernate files, and all the other xml files, too.

At home on my Win XP Pro laptop, IDEA loves my XML files. The same project reports no errors in exactly the same files.

While both boxes use the same version of IDEA and the same project, there may be some minor differences in plugins, global libraries or settings. Still, why would the XML handled so differently?

Any pointers would be appreciated,

Thanks,

-Chris

2 comments
Comment actions Permalink

Hi,

Set file type for dtd extension to be DTD file type.

Christopher J Allen wrote:

At work on my Win 2000 desktop (without admin privileges), IDEA hates my XML files. Anything with a DTD, like the struts-config.xml, is marked all over in red - starting with the first element. It says "Element struts-config must be declared". But the first element is struts-config. The DTD has been downloaded with Fetch Resource (which is very handy). This is the same for hibernate files, and all the other xml files, too.

At home on my Win XP Pro laptop, IDEA loves my XML files. The same project reports no errors in exactly the same files.

While both boxes use the same version of IDEA and the same project, there may be some minor differences in plugins, global libraries or settings. Still, why would the XML handled so differently?

Any pointers would be appreciated,

Thanks,

-Chris



--
Maxim Mossienko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

That did it! Must have edited a DTD file a long time ago at work. DTD was registered as an XML file type.

Thanks,

-Chris

0

Please sign in to leave a comment.