Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » XSD Validation Error
XSD Validation Error [message #1603723] Fri, 06 February 2015 10:58 Go to next message
Luca Dev is currently offline Luca DevFriend
Messages: 4
Registered: June 2012
Junior Member
Hi All,

My following XSD (file attached) is not getting validated. The error message that says:
failed to read document etso-code-lists.xsd.

But if I open in browser etso-code-lists.xsd , i can see the imported xsd.

Could someone please help?




Re: XSD Validation Error [message #1605014 is a reply to message #1603723] Sat, 07 February 2015 07:07 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Luca,

Where is this schema located when you validate it? Is the
etso-code-lists.xsd in the same relative location as this schema? What
tool are you using to validate it? Likely your question is more of a
Web Tools question....


On 06.02.2015 11:58, Luca Dev wrote:
> Hi All,
>
> My following XSD (file attached) is not getting validated. The error message that says:
> failed to read document etso-code-lists.xsd.
>
> But if I open in browser etso-code-lists.xsd , i can see the imported xsd.
>
> Could someone please help?
>
>
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: XSD Validation Error [message #1608509 is a reply to message #1605014] Mon, 09 February 2015 15:15 Go to previous messageGo to next message
Luca Dev is currently offline Luca DevFriend
Messages: 4
Registered: June 2012
Junior Member
Hi ED,

Thanks for replying.

The "etso-code-lists.xsd" is not located on my local machine, but at the namespace and schemaLocation referenced.

I could not paste the entire endurl here, as the forum does not allow it.

But if you could reference the namepsare with .xsd, you will see the file is located on the designated remote server. I am not sure how to reference the file locally. It should work with a url reference as well?

I am using a free online XSD validator tool "www.utilities-online.info/xsdvalidation/#.VNjOzvnF_eU"

Thanks.
Re: XSD Validation Error [message #1610543 is a reply to message #1608509] Tue, 10 February 2015 21:37 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Luca,

How conforming XML processors locate schemas is not very well defined in
the specification. I can explain how the XSD model does it but given
you're using something else, you'd need to ask the provider of that
tool. Generally if the schemaLocation is a relative URI you should
expect it to be resolved against the URI of the schema containing that
relative URI to produce an absolute URI at which the referenced schema
is expected to exist...


On 09.02.2015 16:15, Luca Dev wrote:
> Hi ED,
>
> Thanks for replying.
> The "etso-code-lists.xsd" is not located on my local machine, but at the
> namespace and schemaLocation referenced.
>
> I could not paste the entire endurl here, as the forum does not allow it.
>
> But if you could reference the namepsare with .xsd, you will see the
> file is located on the designated remote server. I am not sure how to
> reference the file locally. It should work with a url reference as well?
>
> I am using a free online XSD validator tool
> "www.utilities-online.info/xsdvalidation/#.VNjOzvnF_eU"
>
> Thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Help needed Creating XSD for source XML
Next Topic:Problem with an XML schema
Goto Forum:
  


Current Time: Fri Mar 29 07:57:57 GMT 2024

Powered by FUDForum. Page generated in 0.02823 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top