Incorrect Validation

Having trouble installing Oxygen? Got a bug to report? Post it all here.
husker
Posts: 5
Joined: Wed Nov 28, 2007 7:45 pm
Location: Omaha, Nebraska

Incorrect Validation

Post by husker »

Oxygen incorrectly reports that my document is valid, even though I specified a schema in the validation scenario (tried using both a URL & a local file). It even says the document is valid when I have mismatched start & end tags, like this:

<tlax>ENM</tla>

I have <oXygen/> XML Editor 9.1, build 2008040216
Any idea what I might be missing?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Incorrect Validation

Post by sorin_ristache »

Hello,

You get no validation error because in your case the validation scenario validates in fact the XSD schema itself, not the XML file. A validation unit of a validation scenario should specify a file of the same type as the edited file (in your case an XML file, not an XSD file) which is a kind of starting point/master document that provides the context necessary for validating the edited document. The schema should be associated with the edited document using one of the mechanisms supported in Oxygen: specifying the schema location of an XSD schema in the xsi:schemaLocation attribute, a document type defined in Preferences -> Document Type Association that matches the edited document.


Regards,
Sorin
Post Reply