Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Adding xsd to XML validator
Adding xsd to XML validator [message #554699] Tue, 24 August 2010 02:57 Go to next message
Michal Borek is currently offline Michal Borek
Messages: 25
Registered: August 2010
Junior Member
Hello,
I need to add schema validation of particular .xml file in XML editor.

Is it possible to plug it into existing XML editor used in webtools?

If so, please tell me how to do this or how can I find information how to do this.

Thanks in advance!


Re: Adding xsd to XML validator [message #555104 is a reply to message #554699] Wed, 25 August 2010 09:19 Go to previous messageGo to next message
David Carver is currently offline David Carver
Messages: 173
Registered: July 2009
Senior Member
Yes, you can go to Preferences->XML->XML Catalog and add the item there. If you want a plugin to contribute the schemas to the XML Catalog you can do so via the XML Catalog Extension point, or by writing a custom resolver and using the common URI extension point.

Re: Adding xsd to XML validator [message #556972 is a reply to message #555104] Fri, 03 September 2010 09:07 Go to previous message
Michal Borek is currently offline Michal Borek
Messages: 25
Registered: August 2010
Junior Member
Dave Carver wrote on Wed, 25 August 2010 09:19
Yes, you can go to Preferences->XML->XML Catalog and add the item there. If you want a plugin to contribute the schemas to the XML Catalog you can do so via the XML Catalog Extension point, or by writing a custom resolver and using the common URI extension point.





The problem is I this file (config.xml) doesn't have namespace so I can't bind schema to specific namespace ).

This file looks something like

<?xml version='1.0' encoding='UTF-8'?>
<config>
<title>something</title>
</config>


I want to check if it's compliant with config.xsd which I prepared by myself.


Previous Topic:Jetty doesn't get started from eclipse
Next Topic:JSDT multiple modifications with single ASTRewrite
Goto Forum:
  


Current Time: Sat Apr 19 11:54:57 EDT 2014

Powered by FUDForum. Page generated in 0.02006 seconds