"Warning: No grammar constraints (DTD or XML schema) detected for the
document."
This appears in a Ganymede project which uses DBunit. All the XML files do
is seed the db prior to running some unit tests. I know you'd normally
give DTD's or schemas but these are not "really" used like that. They
change so often as the db is designed its too tedious to keep a DTD up to
date.
At present I have this:
<?xml version="1.0" encoding="UTF-8"?>
<dataset>
<table name="Address">
<column>addressId</column>
<column>lastChanged</column>
...
I'm aiming for 0 warnings/ 0 errors in this project - can I suppress this
just for these
> "Warning: No grammar constraints (DTD or XML schema) detected for the
> document."
> This appears in a Ganymede project which uses DBunit. All the XML files do
> is seed the db prior to running some unit tests. I know you'd normally
> give DTD's or schemas but these are not "really" used like that. They
> change so often as the db is designed its too tedious to keep a DTD up to
> date.
> At present I have this:
> <?xml version="1.0" encoding="UTF-8"?>
> <dataset>
> <table name="Address">
> <column>addressId</column>
> <column>lastChanged</column>
> ...
> I'm aiming for 0 warnings/ 0 errors in this project - can I suppress this
> just for these
> Best Regards
Just to be a little clearer: I want to suppress just this warning - so I
still want to know if my tags are not matched etc. So far the best I can
achieve is Window | Preference | Validation then yes to "allow project to
override...", then in my project Properties | Validation | XML Validator
settings and exclude each file representing the DBunit seed data. This is
the sledgehammer way which I need to refine as described.
Bill Damage wrote:
> Just to be a little clearer: I want to suppress just this warning - so I
> still want to know if my tags are not matched etc. So far the best I can
> achieve is Window | Preference | Validation then yes to "allow project
> to override...", then in my project Properties | Validation | XML
> Validator settings and exclude each file representing the DBunit seed
> data. This is the sledgehammer way which I need to refine as described.
It's controllable from the "XML Files" preference page.
--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
I think the preference you're looking for is under XML > XML Files in
the group Validating files. You can choose the severity to flag the "No
grammar constraints" error with. Just switch this to Ignore, and that
should fix everything up without limiting all of the other validation
features.
Nick
Bill Damage wrote:
> Bill Damage wrote:
>
>> "Warning: No grammar constraints (DTD or XML schema) detected for the
>> document."
>
>> This appears in a Ganymede project which uses DBunit. All the XML
>> files do is seed the db prior to running some unit tests. I know you'd
>> normally give DTD's or schemas but these are not "really" used like
>> that. They change so often as the db is designed its too tedious to
>> keep a DTD up to date.
>
>> At present I have this:
>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <dataset>
>> <table name="Address">
>> <column>addressId</column>
>> <column>lastChanged</column>
>> ...
>> I'm aiming for 0 warnings/ 0 errors in this project - can I suppress
>> this just for these
>
>> Best Regards
>
> Just to be a little clearer: I want to suppress just this warning - so I
> still want to know if my tags are not matched etc. So far the best I can
> achieve is Window | Preference | Validation then yes to "allow project
> to override...", then in my project Properties | Validation | XML
> Validator settings and exclude each file representing the DBunit seed
> data. This is the sledgehammer way which I need to refine as described.
>
> Best Regards
>