0.7.1: How to make files with extent not ".xml" use XML editor? [message #148643] |
Wed, 23 November 2005 18:38 |
David M. Karr Messages: 143 Registered: July 2009 |
Senior Member |
|
|
I've installed WTP 0.7.1 on Eclipse 3.1.1.
When I view XML files, it does "all the right things", giving me the
schema in the Outline view, colorizing the text, and other things. It
apparently knows the file is an XML file by its file extent.
I have another file that is an XML file, but its extent is not ".xml".
How can I make all of the XML features work with this file? I thought it
might be in the "File Assocations" section of the Preferences, but I think
perhaps not. There wasn't even an entry for ".xml" there, and when I
added my new extent and associated it with the "XML Editor", it only
halfway worked. It now shows the XML file icon in the package view, but
it doesn't show the schema in the Outline view, and the Design tab says
"The document is empty. Right mouse click to insert content".
|
|
|
Re: 0.7.1: How to make files with extent not ".xml" use XML editor? [message #148668 is a reply to message #148643] |
Wed, 23 November 2005 19:12 |
|
David Karr wrote:
> I've installed WTP 0.7.1 on Eclipse 3.1.1.
>
> When I view XML files, it does "all the right things", giving me the
> schema in the Outline view, colorizing the text, and other things. It
> apparently knows the file is an XML file by its file extent.
>
> I have another file that is an XML file, but its extent is not ".xml".
> How can I make all of the XML features work with this file? I thought
> it might be in the "File Assocations" section of the Preferences, but I
> think perhaps not. There wasn't even an entry for ".xml" there, and
> when I added my new extent and associated it with the "XML Editor", it
> only halfway worked. It now shows the XML file icon in the package
> view, but it doesn't show the schema in the Outline view, and the Design
> tab says "The document is empty. Right mouse click to insert content".
You just need to add the filename extension to those listed as "XML"
in the Content Type preferences. The editor is associated to the
XML file Content Type, not its filename extension specifically. The
Content Type preference can be used by more than just
editors--validation will eventually use it as well giving you
Problem reporting as well as editor support in one step.
--
- Nitin
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
Re: 0.7.1: How to make files with extent not ".xml" use XML editor? [message #149100 is a reply to message #148668] |
Fri, 25 November 2005 10:16 |
Eclipse User |
|
|
|
Originally posted by: please.ask.me
Nitin Dahyabhai <nitind@us.ibm.com> wrote in news:dm2eum$je2$1
@news.eclipse.org:
> You just need to add the filename extension to those listed as "XML"
> in the Content Type preferences. The editor is associated to the
> XML file Content Type, not its filename extension specifically. The
> Content Type preference can be used by more than just
> editors--validation will eventually use it as well giving you
> Problem reporting as well as editor support in one step.
>
wow, that's nice to know. thanks
ex
|
|
|
Powered by
FUDForum. Page generated in 0.03147 seconds