How to edit plugin.xml without errors?

If I create a brand new project with one Plugin module, I end
up having a META-INF/plugin.xml file with some default content.
If I bring up this file in IDEA, every single xml element is flagged as
an error. How can I make IDEA understand the file withtout errors?

plugin.xml references a DTD which seems to be a valid URL.
Bringing up this plugin.dtd into IDEA is even worse: EVERYTHING
is underwaved with error 'Top level element is not completed". Is
there something there to setup to make that work right?

This is with build #3273.

For reference, here's the default plugin.xml:
====snip======
Plugin name here short description of the plugin 1.0 YourCompany ]]>
====snip======

Thanks,

Vince.


5 comments
Comment actions Permalink

Vincent Mallet wrote:

If I create a brand new project with one Plugin module, I end
up having a META-INF/plugin.xml file with some default content.
If I bring up this file in IDEA, every single xml element is flagged as
an error. How can I make IDEA understand the file withtout errors?


Verify that you have the .dtd extension defined as file type DTD and not as XML.

HTH,
Sascha

0
Comment actions Permalink

Verify that you have the .dtd extension defined as file type DTD and not

as XML.

Interesting. It was indeed registered as XML. After registering it as DTD,
plugin.xml now shows without errors but plugin.dtd is still a big red wave

Vince.


0
Comment actions Permalink

Hello Sascha,

SW> Verify that you have the .dtd extension defined as file type DTD and
SW> not as XML.

Waw! it's my headache for ejb-jar.xml - it always in red :)))

Thanks a lot, now all work fine!
--
Alexey Efimov, Java Developer
Tops BI
http://www.topsbi.ru


0
Comment actions Permalink

On Thu, 31 Mar 2005 11:06:41 -0600, Vincent Mallet wrote:

plugin.xml references a DTD which seems to be a valid URL. Bringing up
this plugin.dtd into IDEA is even worse: EVERYTHING is underwaved with
error 'Top level element is not completed". Is there something there to
setup to make that work right?


I've noticied this with editing HTML4 documents where the <!DOCTYPE is
also mentioned. every. single. line. red. :(

0
Comment actions Permalink

On Thu, 31 Mar 2005 19:20:05 +0200, Sascha Weinreuter wrote:

Verify that you have the .dtd extension defined as file type DTD and not
as XML.


Interesting, I'll check that when I get to the office myself...

0

Please sign in to leave a comment.