xml - How to add an XSD to Eclipse catalog directly -


i developing plugin eclipse, 1 of features able edit xml. in order have add xsd in eclipse catalog. there easy way add xsd eclipse catalog directly (i mean directly through code)

you can use org.eclipse.wst.xml.core.catalogcontributions extension point (this requires have web tools (wst) component of eclipse installed.

the following contribution made org.eclipse.wst.xsd.core plugin:

<extension     point="org.eclipse.wst.xml.core.catalogcontributions">     <catalogcontribution id="default">         <uri              name="http://www.w3.org/2001/xmlschema"              uri="platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/xmlschema.xsd" />         <system              systemid="http://www.w3.org/2001/xml.xsd"              uri="platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/xml.xsd"/>                 </catalogcontribution> </extension> 

Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -