Page 1 of 1

Cannot validate personal.xml against its personal.xsd

Posted: Wed Jun 23, 2004 4:55 pm
by jot1109
When i try to validate personal.xml against personal.dtd, i get the error 'cvc-elt.1: Cannot find the declaration of element 'personnel'. This happens with any xml file i tried so far that has a dtd associated.

Surprisingly, validating personal-schema.xml works.

Environment:
Linux gentoo 2.4.25
Eclipse 3.0m8
oxygen 4.1
oxygen proxy enabled
no other than the two default xml catalogs
Verbosity set to debug (cannot see any output though)

Posted: Thu Jun 24, 2004 10:03 am
by george
Hi,

The problem is that you have set the option "Ignore the DTD for validation if a schema is specified" [1] to true. If you disable that feature oXygen will validate against the specified DTD. This feature is useful for handling cases when both XML Schema validation and support for entities is needed. I agree that the name of this option is a little misleading, it should better read: Always use XML Schema for validation.

[1] http://www.oxygenxml.com/doc/ug-oxygen/ ... arser.html

Best Regards,
George

Posted: Thu Jun 24, 2004 11:32 am
by jot1109
George,

thumbs up - runs like a charm. The option should be disabled by default, shouldn't it?

Thanks

Jochen

Posted: Thu Jun 24, 2004 12:16 pm
by george
Hi Jochen,
jot1109 wrote:The option should be disabled by default, shouldn't it?
Yes, by default is is disabled.

Best Regards,
George