Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Associate Custom Content Type with XML Validator.
Associate Custom Content Type with XML Validator. [message #898993] Mon, 30 July 2012 00:47 Go to previous message
rohit chawla is currently offline rohit chawla
Messages: 19
Registered: June 2012
Junior Member
Just want to know what should come in place of question marks ?? in the following plugin.xml, in order to validate my custom content-type xml2 (xml types) with normal xml validator???
Write now, I am able to open xml2 in XML editor, but not able to validate.


<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>

    <extension point="org.eclipse.wst.sse.ui.sourcevalidation">
		<validator
			scope="total"
			class="???"
			id="???">
			<contentTypeIdentifier id="com.xyz.ide.core.contentType.dummy">
				<partitionType id="org.eclipse.wst.xml.XML_DEFAULT">
				</partitionType>
			</contentTypeIdentifier>
		</validator>
	</extension>
   
	
	 <extension
         point="org.eclipse.core.runtime.contentTypes">
         <content-type
            id="com.xyz.ide.core.contentType.dummy"
            base-type="org.eclipse.core.runtime.xml"
            file-extensions="xml2"
            name="xml2"
            priority="normal"
            default-charset="UTF-8"/>
   </extension>
</plugin>


Thanks

[Updated on: Mon, 30 July 2012 00:50]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:How to make Content assist working when editors are inside Composite?
Next Topic:Forcing StructuredTextEditor to recognize XML
Goto Forum:
  


Current Time: Sat May 18 05:15:18 EDT 2013

Powered by FUDForum. Page generated in 0.01814 seconds