- This topic has 6 replies, 2 voices, and was last updated 19 years, 7 months ago by wobbet.
-
AuthorPosts
-
wobbetMemberUsing 3.8.4 on Eclipse 3.1M6
Before I upgraded to 3.1M6 all of my .xml files based on my .xsd were just fine, even when manually running the validator. After upgrading all of my .xml files are now reporting errors saying that the root element cannot be found. The exact error message is…
cvc-elt.1: Cannot find the declaration of element ‘MyRootElement’
Why did this change? This is more than annoying because that one error hides any other errors that might be withing the instance document.
rjsjr
PS – When running the validator manually the dialog box says “Validating validation of xxxxx by XML Validator has started…”
First, that’s a pretty ridiculous message and second there is a whole bunch of extra whitespace in the dialog. String.trim() is a good thing…
Riyad KallaMemberBefore I upgraded to 3.1M6
Did you also upgrade MyEclipse to the beta specifically for M6?
wobbetMemberYes I did…
Riyad KallaMemberwobbet,
The devs have asked for sample files if you have them handy so that we could test what is going on, also please send the XSD files if necessary, if the XSD’s are publically accessible then you don’t need to.Please send all sample XML files to support@genuitec.com ATTN Riyad, and I will test and file bugs with them if I find any. If not, I will work with you to try and figure out what happened.
wobbetMemberJust sent the email.
Riyad KallaMemberrjsjr,
I got your files and tested them, I removed your file:// hardcoded path and instead put all the XSD and XML files into the same folder, then just put the name of the XSD file for the location (minus the path) and walla, all the exceptions disappeared. I really think that you likely have the wrong path in there somehow, or maybe the wrong URL notation for the path, but either way, validation works correctly once it can find the file.
wobbetMemberUmmmm… the file:// hardcoded path worked just fine with 3.0 and MyEclipse before I upgraded to 3.1M6 and the appropriate version of MyEclipse. The location of the files did not change, the only thing that changed was the version of Eclipse and MyEclipse.
rjsjr
-
AuthorPosts