Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
henk
Post subject: Overambitious default setting for XML validation?  PostPosted: Sep 29, 2008 - 09:24 PM



Joined: Dec 15, 2003
Posts: 125

I just installed MyEclipse 7.0 M2 on my Mac. First of all thanks for getting the release out this quick and for supporting OS X :)

Compared to MyEclipse 6.5 I noticed that the XML validation for "Indicate when no grammar is specified" is now there and set by default to "warning". This gives a warning like this on my otherwise warning-less project:


Code:

Description   Resource   Path   Location   Type
No grammar constraints (DTD or XML schema) detected for the document.   .mymetadata   assets    line 1   XML Problem


While the warning might be helpful for certain projects, I'm not really sure you should enable this by default, especially when the .mymetadata file doesn't comply with it. Interestingly, when I created a new project with ME7, .mymetadata was not flagged with a warning. In my existent project, .classpath and .project also aren't flagged. It seems as though the ME7 XML validator has some build-in support for excluding specific files, but some how fails for the .mymetadata in the existent project.

Nevertheless, setting this to warning by default may still not be the best choice. Quite a lot of other files that typically aren't under user control don't have a DTD or XML schema, with Tomcat's META-INF/context.xml probably being the more famous one.
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Overambitious default setting for XML validation?  PostPosted: Sep 30, 2008 - 08:01 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5659

henk,
Thank you for pointing this out. I'll let the dev team know about this.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
brado77
Post subject: RE: Overambitious default setting for XML validation?  PostPosted: Nov 08, 2008 - 05:15 PM



Joined: Dec 12, 2007
Posts: 22

I'm in the same boat here. Please let me know when a fix is available.

Brad
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-nipun
Post subject: RE: Overambitious default setting for XML validation?  PostPosted: Nov 10, 2008 - 05:40 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5659

Brad,
The team is already working on this issue. I'm sorry you ran into it as well. I'll let you know as soon as its fixed.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
florianf
Post subject: RE: Overambitious default setting for XML validation?  PostPosted: Nov 14, 2008 - 02:21 PM



Joined: Oct 20, 2008
Posts: 7

In the meantime, is there a way to disable this warning? I get it on my ant files. And I like my project to be warning-free.

Thanks in advance,
Florian
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Overambitious default setting for XML validation?  PostPosted: Nov 14, 2008 - 02:45 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5659

You can go to Windows > Prefs > MyEclipse > Validation and disable the XML validator or you can right click on the file and go to MyEclipse > Exclude from validation.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
florianf
Post subject:   PostPosted: Nov 14, 2008 - 05:21 PM



Joined: Oct 20, 2008
Posts: 7

But then the whole XML validation goes away!

Anyway, I found the answer. I should have read the first post more carefully.
In Eclipse it is the setting.
Window > Preferences > Web and XML > XML Files > Warn when no grammar is specified.
In MyEclipse, it is
Window > Preferences > MyEclipse > Files and Editors > XML > Indicate when no grammar is specified.

And after changing the setting, right-click on you project and run the validation again.
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject:   PostPosted: Nov 14, 2008 - 06:07 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5659

Quote:

Anyway, I found the answer.

Glad you found the answer to your question.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits