facebook

Schema Validation Error

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #228928 Reply

    wobbet
    Member

    Using 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…

    #228998 Reply

    Riyad Kalla
    Member

    Before I upgraded to 3.1M6

    Did you also upgrade MyEclipse to the beta specifically for M6?

    #229036 Reply

    wobbet
    Member

    Yes I did…

    #229047 Reply

    Riyad Kalla
    Member

    wobbet,
    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.

    #229138 Reply

    wobbet
    Member

    Just sent the email.

    #229140 Reply

    Riyad Kalla
    Member

    rjsjr,
    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.

    #229686 Reply

    wobbet
    Member

    Ummmm… 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

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Schema Validation Error

You must be logged in to post in the forum log in