facebook

XML Schema validation producing improper errors

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #297267 Reply

    nsoule
    Member

    Hello,

    Someone at my company is working with XSD documents. They are importing a schema with no namespace. This same set of documents validates fine in XMLSpy and other validation tools, but when in MyEclipse Blue 7.1.1 it gives validation errors saying “cannot resolve the name X to a(n) ‘group’ component” (it happens to be a group node that is being refernced). The IDE is aware of the “missing” element though as when I hit ctrl-space with my cursor on the text with the red error underline, that same entity that can’t be resolved (according to the Problems pane) is available in my context menu.

    Any help you can provide would be appreciated as we have valid XSD/WSDL documents, but a workspace littered with errors.

    Thanks very much.

    -Nate

    #297303 Reply

    Loyal Water
    Member

    Nate,
    We’ll need a specific example to be able to debug what is going on. Can you create a simple Java project with the XSD file and all referenced XSD files that contribute elements to that one and share it with us to take a look at.

    The content-assist shows the valid completion because it “learns” completions from the doc based on existing tags — to give you a better experience of editing when a DTD or Schema is not provided.

    #297304 Reply

    nsoule
    Member

    Thanks Nipun. I actually just found a setting in the preferences (MyEclipse Blue Edition -> Files and Editors -> XML -> XML Schemas) that has a checkbox for “Honour all schema locations” that fixed this issue. Thanks again.

    -Nate

    #297347 Reply

    Loyal Water
    Member

    Your welcome.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: XML Schema validation producing improper errors

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

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