Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Apache Ant build.xml has no DTD or XML Schema,but I want to validate other files
Apache Ant build.xml has no DTD or XML Schema,but I want to validate other files [message #227208] Mon, 26 January 2009 06:45 Go to next message
Kent Larsson is currently offline Kent LarssonFriend
Messages: 5
Registered: July 2009
Junior Member
Hi,

Apache Ant build.xml files has no DTD or XML Schema, which makes it
impossible to make validation work.

Currently I get this warning:
"No grammar constraints (DTD or XML schema) detected for the
document. build.xml webcookie line 1 XML Problem"

I have looked around in the settings and I can't seem to be able to turn
this warning off. Ideally I would want to exclude this specific file from
validation, but if that is not possible disabling validation all together
would be a good idea.

So my question is: How do I exclude that file from validation? And if that
is not possible; How do I turn something off to make this warning go away?

I'm using Eclipse 3.4.1 with the latest WTP (with latest update of all
plug ins).
Re: Apache Ant build.xml has no DTD or XML Schema,but I want to validate other files [message #227229 is a reply to message #227208] Mon, 26 January 2009 14:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

Hi Kent,

instead of a long explanation I provide you with a link to a set of screenshots
(you have scroll down about one screen page until you see the first screenshot,
unfortunately the website is in german, but the images will hopefully help anyway):

http://www.informatik.fh-wiesbaden.de/~knauf/KomponentenArch itekturen2008/jsfunit/index.html#project

Hope this helps

Wolfgang

Kent Larsson schrieb:
> Hi,
>
> Apache Ant build.xml files has no DTD or XML Schema, which makes it
> impossible to make validation work.
>
> Currently I get this warning:
> "No grammar constraints (DTD or XML schema) detected for the
> document. build.xml webcookie line 1 XML Problem"
>
>
Re: Apache Ant build.xml has no DTD or XML Schema,but I want to validate other files [message #227262 is a reply to message #227208] Mon, 26 January 2009 18:25 Go to previous messageGo to next message
Nick Sandonato is currently offline Nick SandonatoFriend
Messages: 126
Registered: July 2009
Senior Member
Kent Larsson wrote:
> Hi,
>
> Apache Ant build.xml files has no DTD or XML Schema, which makes it
> impossible to make validation work.
>
> Currently I get this warning:
> "No grammar constraints (DTD or XML schema) detected for the
> document. build.xml webcookie line 1 XML Problem"
>
> I have looked around in the settings and I can't seem to be able to turn
> this warning off. Ideally I would want to exclude this specific file
> from validation, but if that is not possible disabling validation all
> together would be a good idea.
>
> So my question is: How do I exclude that file from validation? And if
> that is not possible; How do I turn something off to make this warning
> go away?
>
> I'm using Eclipse 3.4.1 with the latest WTP (with latest update of all
> plug ins).
>
>
You can turn off this warning for all XML documents by using the XML
Files preferences. From the Preference page, choose XML > XML Files.
Under the section "Validating files" you can change the severity in the
drop down from Warning to Ignore. Just note that this is for all XML
files, not just build.xml. But, as Wolfgang mentioned, you can just add
build.xml to the exclude filter if you would still like this warning for
other XML files.
Re: Apache Ant build.xml has no DTD or XML Schema,but I want to validate other files [message #227343 is a reply to message #227208] Tue, 27 January 2009 16:42 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2333
Registered: July 2009
Senior Member
Kent Larsson wrote:
> Apache Ant build.xml files has no DTD or XML Schema, which makes it
> impossible to make validation work.
>
> Currently I get this warning:
> "No grammar constraints (DTD or XML schema) detected for the
> document. build.xml webcookie line 1 XML Problem"
>
> I have looked around in the settings and I can't seem to be able to turn
> this warning off. Ideally I would want to exclude this specific file
> from validation, but if that is not possible disabling validation all
> together would be a good idea.
>
> So my question is: How do I exclude that file from validation? And if
> that is not possible; How do I turn something off to make this warning
> go away?
>
> I'm using Eclipse 3.4.1 with the latest WTP (with latest update of all
> plug ins).

http://www.eclipse.org/webtools/releases/3.0.0/newandnotewor thy/sourceediting/xmlvalidation.png
should be what you're looking for.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Implementing a simple Validator for HTML Files
Next Topic:Facet uses JRE name. The JRE name may not be available on others computers.
Goto Forum:
  


Current Time: Mon Nov 24 12:33:31 GMT 2014

Powered by FUDForum. Page generated in 0.03023 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software