facebook

XML and XSD Validation not working

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

    I have an xml & xsd, but when I “right-click-> myeclipse -> run validation” nothing seems to happen. There are glaring errors throughout the document; hence, the question: does this work?

    –Kurt

    #263407 Reply

    Brian Fernandes
    Moderator

    Kurt,

    Yes, it certainly works. XML validation is usually also performed on the fly, as you type. Did you exclude the files in question from validation by any chance? Can you create a dummy project, copy your XML files into them and see if your errors are reported in there?

    Could you please answer all the questions asked here Posting Guidelines? That will help us understand whether it’s an installation problem or a configuration issue.

    #263796 Reply

    bryanross
    Member

    I am experiencing the same problem. As of 5.1, I run Validation and nothing happens. No errors in the .metadata/.log file and the file has not been excluded from validation.

    *** Date:
    Thursday, December 21, 2006 7:23:55 PM CST

    ** System properties:
    OS=Linux
    OS version=2.6.16.21-0.25-smp
    Java version=1.5.0_07

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 5.1.0 GA
    Build id: 20061111-5.1.0-GA

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.1.0 GA
    Build id: 20061111-5.1.0-GA

    Eclipse Platform

    Version: 3.2.1.r321_v20060921-b_XVA-INSQSyMtx
    Build id: M20060921-0945

    Eclipse RCP

    Version: 3.2.1.r321_v20060801-2ekW2BxmcpPUOoq
    Build id: M20060921-0945

    Eclipse Java Development Tools

    Version: 3.2.1.r321_v20060905-R4CM1Znkvre9wC-
    Build id: M20060921-0945

    Eclipse Plug-in Development Environment

    Version: 3.2.1.r321_v20060823-6vYLLdQ3Nk8DrFG
    Build id: M20060921-0945

    Eclipse Project SDK

    Version: 3.2.1.r321_v20060801-tQ1w49KnTArT0FZ
    Build id: M20060921-0945

    Eclipse Graphical Editing Framework

    Version: 3.2.1.v20060921
    Build id: 20060921-1617

    Eclipse startup command=-os
    linux
    -ws
    gtk
    -arch
    x86_64
    -launcher
    /home/bryros/eclipse/eclipse
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    cf0011
    -product
    com.genuitec.myeclipse.product.ide
    -vm
    /usr/bin/java

    #265017 Reply

    Riyad Kalla
    Member

    I’m posting here as a followup incase other users are having this problem. We are waiting for 5.5 M1 to come out and Bryan has agreed to test it out. We’ve gone back and forth with test cases in email a few times and I’m not able to reproduce the problem locally.

    #271997 Reply

    I have posted the same message in another thread. XSD Validation does not work, and I have tried every option to make sure I am not missing anything. This is a feature that works in 3.x release of MyEclipse, and does not work both in 5.1 and 5.5. To me, this a serious bug and the MyEclipse team needs to address this.

    #272035 Reply

    Riyad Kalla
    Member

    ravikanth_iit,
    Do you have an example file that I can test that isn’t being validated? Can you PM it to me and include a link to this thread for reference?

    #272050 Reply

    If you go to Window -> Preferences -> MyEclipse -> Validation from the top menu, and go to its validation, you would not see an entry for XML Schema validation, where as you would see other kinds like XML Validator, WSDL Validator, JSP Syntax Validator. Now this explains why the schema file is not being validated at all.

    If you copy-paste this snippet in your Editor on version 5.0 and higher, you would not see it being validated at all. Please note that the closing tag is missing ‘>’ for the element ‘invoiceNo’

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <schema xmlns=”http://www.w3.org/2001/XMLSchema”&gt;
    <element name=”invoiceNo” type=”string”></element
    </schema>

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: XML and XSD Validation not working

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