Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » XML Catalog and validation
XML Catalog and validation [message #557240] Mon, 06 September 2010 04:49 Go to previous message
Michał Borek is currently offline Michał Borek
Messages: 24
Registered: August 2010
Junior Member
Hello
I've got problem with validation of file, that doesn't have any namespace or schema definition.
Is it possible to attach validator to xml file based on name of this file?

I've got: config.xml and syntax like below:
<config>
<title>...</title>
<description>...</description>
....
</config>


I can't add any xml schema definition or namespace definition.

I've created xsd file to validate this, but I don't know how to add extention to source editor so that it would be validated and I've got contentassist.

I tried to use xml catalog but it works only when schema definition is defined.

I'm sure that it's possible, becasue in Eclipse RCP there is plugin.xml file which is validated that way.

Can you please tell me how to add such validation to source editor in my plugin?

Thank you in advance


 
Read Message
Read Message
Read Message
Read Message
Previous Topic:What's not working: a list
Next Topic:Extending the Annotation Properties view
Goto Forum:
  


Current Time: Sun May 19 06:35:13 EDT 2013

Powered by FUDForum. Page generated in 0.01614 seconds