Cannot validate personal.xml against its personal.xsd

Having trouble installing Oxygen? Got a bug to report? Post it all here.
jot1109
Posts: 2
Joined: Wed Jun 23, 2004 4:40 pm

Cannot validate personal.xml against its personal.xsd

Post 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)
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
jot1109
Posts: 2
Joined: Wed Jun 23, 2004 4:40 pm

Post by jot1109 »

George,

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

Thanks

Jochen
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
Post Reply