Skip to main content

xml scheme validation

No replies
Joined: 2007-10-17

Hello, I have a problem with validating a xml scheme for some dynamic web pages, the wierd thing is that the scheme gets validated just fine in IntellliJ. In Eclipse i get errors:

src-resolve: Cannot resolve the name 'className' to a(n) 'simpleType definition' component.
src-resolve.4.1: Error resolving component 'descriptorType'. It was detected that 'descriptorType' has no namespace, but components with no target namespace are not referenceable from schema document 'file:///C:/Users/tommasino/workspace/inovioweb/src/descriptor.xsd'. If 'descriptorType' is intended to have a namespace, perhaps a prefix needs to be provided. If it is intended that 'descriptorType' has no namespace, then an 'import' without a "namespace" attribute should be added to 'file:///C:/Users/tommasino/workspace/inovioweb/src/descriptor.xsd'.

Looks like the errors arent related. Here is the scheme, not complete (deleted non relevant lines).

<br />
<?xml version="1.0" encoding="UTF-8"?></p>

If I add xmlns="" to the scheme tag i get rid of these errors, but get a chain of another errors. The thing is, this application is actually deployed, I simply cant get it working in Eclipse. Any ideas why?

PS: this could be a Eclipse issue, if so, sorry for posting in bad forums. I tried validating it using other tools ( and got the same output, so Im not sure ;)