Page 1 of 1

Incorrect Validation

Posted: Mon Sep 28, 2009 6:57 pm
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?

Re: Incorrect Validation

Posted: Tue Sep 29, 2009 11:09 am
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