Page 1 of 1
XML Schemas Validation always reports Valid
Posted: Tue Oct 10, 2006 12:27 am
by kingargyle
After using the Oxygen XSD editor in Eclipse 3.2.1, and validating a file that has several errors. If you fix, and then validate, it will eventually tell you that the schema is Valid, even though there are still errors in the file. The Web Tools 1.5 Validation correctly reports the errors no matter how many times it is run. If I exit out of eclipse and restart, schemas validation starts working again.
No errors are thrown in the error log file.
Posted: Tue Oct 10, 2006 10:00 am
by george
Hi,
It will help if you can post here or send to support at oxygenxml dot com a sample and a description to reproduce this.
Thank you,
George
Posted: Wed Oct 11, 2006 8:12 pm
by kingargyle
I can do that. I'll be doing some pretty heavy schema development in the next few days, so will at least get a couple of screen shots for you. It seems to take a while before it happens, but once it does, it will always report the schema as valid, but the Web Tools 1.5 correctly reports it as invalid. I know that Xerces is used by both Oxygen and Web Tools.
Anyways, I'll provide some snapshots.
Posted: Tue Oct 17, 2006 6:34 pm
by kingargyle
Managed to duplicate it again. I sent some screen shots to the support email address.
Oxygen and HyperModel don't get along
Posted: Mon Nov 06, 2006 10:49 pm
by kingargyle
I think I tracked the problem down to using the OxygenXML and the HyperModel 2.0 plugins together.
The Real time validator in Oxygen worked, until I opened a xml Model in HyperModel. The following console ouput shows the XSD Validator invalidly reporting the schema as valid:
Code: Select all
[14:48:00] - XSD Error Scanner - Start scanning file:/D:/Work/STAR%20Schemas/Development/STAR/Rev/Resources/Components/Common/Components.xsd
[14:48:04] - Found 1 problem(s)
[14:49:19] - XSD Error Scanner - Start scanning file:/D:/Work/STAR%20Schemas/Development/STAR/Rev/Resources/Components/Common/Components.xsd
[14:49:19] - Found 0 problem(s)
Nothing changed between 14:48:04 and 14:49:19 that would affect the schema itself, the only difference is that between that time I opened a HyperModel file. Web Tools 1.5.2 validation still works, but any validation run through Oxygen doesn't work.
HyperModel can be downloaded from here:
http://www.xmlmodeling.com/hyperModel/
It can be installed as an Eclipse plugin or by itself.
Posted: Mon Nov 06, 2006 10:50 pm
by kingargyle
Oh, and there is nothing in the Error Log view to indicate that there is an error.
Re: Oxygen and HyperModel don't get along
Posted: Tue Nov 07, 2006 1:27 pm
by sorin_ristache
kingargyle wrote:Nothing changed between 14:48:04 and 14:49:19 that would affect the schema itself, the only difference is that between that time I opened a HyperModel file.
Are you sure you did not edit using other plugin Components.xsd or other XSD file included or imported in Components.xsd ? Can you
send us the Components.xsd schema ?
Regards,
Sorin
Posted: Wed Nov 08, 2006 11:31 am
by sorin_ristache
Hello,
We could find a validation problem when both the <oXygen/> plugin and the HyperModel plugin are installed but in a different form. After a diagram is opened with the HyperModel plugin the Validate Document action available on the <oXygen/> plugin toolbar does not work correctly anymore. The validate as you type feature (real time validator) still works and marks validation errors correctly in the XSD file but the Validate Document action reports that there are no validation errors. This happens only after opening a file with the HyperModel plugin. We will study what is wrong in this configuration. We did not see a difference in the validation errors reported when we just switched between the editor opened with the <oXygen/> plugin and the editor opened with the HyperModel plugin.
Thanks,
Sorin
Posted: Thu Nov 09, 2006 2:12 am
by kingargyle
What you found is the error I described first in this thread. The validate as you type will continue to work for a while, and then it will stop. This is all related to the hyperModel install.
I'm just glad that you have been able to reproduce part of the problem.
Posted: Fri Nov 10, 2006 3:07 pm
by sorin_ristache
Hello,
We fixed the problem. The fix will be included in the next version of the oXygen plugin.
Regards,
Sorin
Posted: Mon Nov 13, 2006 8:22 pm
by kingargyle
Thanks!
Posted: Tue Nov 14, 2006 11:46 am
by sorin_ristache
Hello,
The
Release Candidate 2 includes the fix. Now the oXygen plugin should not have validation problems when other plugins are installed and also other plugins should work with and without the oXygen plugin.
Regards,
Sorin