Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » XML Syntax Coloring on files w/o DTD
XML Syntax Coloring on files w/o DTD [message #87193] Fri, 25 March 2005 04:52 Go to next message
Eclipse UserFriend
Originally posted by: rdenis.ad.skynet.be

Hi,

I've installed M3 on Eclipse M5 and I cannot see syntax coloring on some
XML files.

With M2, there was a bug to open some XML files like project.xml and it
works now.

But it seems that syntax coloring and structured file editor doesn't
work with XML files without DTD or schema, like Apache Maven
configuration files (maven.xml or project.xml).

I did not disable 'Use Inferred grammar in absence of DTD/XML Schema'
but, apparently, this inference does not work?

Am I doing something wrong?

(for example, hibernate configuration file hibernate.cfg.xml shows
properly without addition of any third-party plugin)
Re: XML Syntax Coloring on files w/o DTD [message #87327 is a reply to message #87193] Fri, 25 March 2005 10:34 Go to previous messageGo to next message
Eclipse UserFriend
Renaud Denis wrote:
> I've installed M3 on Eclipse M5 and I cannot see syntax coloring on some
> XML files.
>
> With M2, there was a bug to open some XML files like project.xml and it
> works now.
>
> But it seems that syntax coloring and structured file editor doesn't
> work with XML files without DTD or schema, like Apache Maven
> configuration files (maven.xml or project.xml).
>
> I did not disable 'Use Inferred grammar in absence of DTD/XML Schema'
> but, apparently, this inference does not work?
>
> Am I doing something wrong?
>
> (for example, hibernate configuration file hibernate.cfg.xml shows
> properly without addition of any third-party plugin)

Most likely it's a similar conflict with any Maven plugins you might
have installed. The DTD editor has similar problems when PHPeclipse
is installed. Which additional plugins do you have installed?

--
- Nitin
Re: XML Syntax Coloring on files w/o DTD [message #87474 is a reply to message #87193] Fri, 25 March 2005 20:00 Go to previous messageGo to next message
Eclipse UserFriend
On Fri, 25 Mar 2005 10:52:48 +0100, Renaud Denis <rdenis.ad@skynet.be> wrote:


>
> Am I doing something wrong?
>

I think with M3, there is still some "conflicts" if the xml file contains
a <project> tag. If this is the case, there should a message in the log to
the effect of "info: structuredEditor being used without structuredDocument"
and the type of document will be listed (usually 'ant' related).

If this is the case, you might suggest to the Eclipse ant component they are
"over defining" the ant content type and "stealing" an extremely popular root tag.
Re: XML Syntax Coloring on files w/o DTD [message #87550 is a reply to message #87327] Sun, 27 March 2005 13:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rdenis.ad.skynet.be

These are the third-party plugins I installed into Eclipse extensions
folders:

Spring
Subclipse
Log4e
SQLExplorer
HibernateConsole

But I think the problem was the same without having connected eclipse M5
to the extensions...

Nitin Dahyabhai a écrit :
> Renaud Denis wrote:
>
>> I've installed M3 on Eclipse M5 and I cannot see syntax coloring on
>> some XML files.
>>
>> With M2, there was a bug to open some XML files like project.xml and
>> it works now.
>>
>> But it seems that syntax coloring and structured file editor doesn't
>> work with XML files without DTD or schema, like Apache Maven
>> configuration files (maven.xml or project.xml).
>>
>> I did not disable 'Use Inferred grammar in absence of DTD/XML Schema'
>> but, apparently, this inference does not work?
>>
>> Am I doing something wrong?
>>
>> (for example, hibernate configuration file hibernate.cfg.xml shows
>> properly without addition of any third-party plugin)
>
>
> Most likely it's a similar conflict with any Maven plugins you might
> have installed. The DTD editor has similar problems when PHPeclipse is
> installed. Which additional plugins do you have installed?
>
Re: XML Syntax Coloring on files w/o DTD [message #87565 is a reply to message #87474] Sun, 27 March 2005 13:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rdenis.ad.skynet.be

Hi,

The error I can see in the error log is:

---
StructuredTextEditor being used without StructuredDocument
---
Document implementation: class
org.eclipse.ant.internal.ui.editor.text.PartiallySynchronize dDocument
---
Input Name: project.xml
---

So, if I understand well, I must forward the problem to the Platform team?

Do you know if there should be a way to bypass the ant component?
I use no ant scripts anymore...

Thanks a lot,
Renaud

David Williams a écrit :
> On Fri, 25 Mar 2005 10:52:48 +0100, Renaud Denis <rdenis.ad@skynet.be>
> wrote:
>
>
>>
>> Am I doing something wrong?
>>
>
> I think with M3, there is still some "conflicts" if the xml file contains
> a <project> tag. If this is the case, there should a message in the log to
> the effect of "info: structuredEditor being used without
> structuredDocument"
> and the type of document will be listed (usually 'ant' related).
>
> If this is the case, you might suggest to the Eclipse ant component they
> are
> "over defining" the ant content type and "stealing" an extremely popular
> root tag.
>
Re: XML Syntax Coloring on files w/o DTD [message #87575 is a reply to message #87565] Sun, 27 March 2005 15:49 Go to previous messageGo to next message
Eclipse UserFriend
On Sun, 27 Mar 2005 20:13:16 +0200, Renaud Denis <rdenis.ad@skynet.be> wrote:

> So, if I understand well, I must forward the problem to the Platform team?
>Do you know if there should be a way to bypass the ant component?
> I use no ant scripts anymore...
>


I've opened bug
89195, ant content type over defined for <project> tag
see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=89195

I've attached some of the above newsgroup exchange, but feel free
to add your voice/suggestions to that bug.
Re: XML Syntax Coloring on files w/o DTD [message #87656 is a reply to message #87575] Mon, 28 March 2005 04:35 Go to previous message
Eclipse UserFriend
Originally posted by: rdenis.ad.skynet.be

Thanks a lot!
No way to open some <project/> file with XML Editor.

IMHO this bug is really critical since Maven will clearly "rules" over
Ant in a short future ;) Despite its actual imperfections.

Why would wtp team work hard to give a flexible project structure on the
j2ee projects if even a simple POM descriptor cannot be edited correctly...

It would be simpler if we could choose between Ant Editor or XML editor
as usually with 'Open As', but actually it seems to be NO way to bypass
Ant Editor.

Thanks again for your help.

David Williams a écrit :
> On Sun, 27 Mar 2005 20:13:16 +0200, Renaud Denis <rdenis.ad@skynet.be>
> wrote:
>
>> So, if I understand well, I must forward the problem to the Platform
>> team?
>> Do you know if there should be a way to bypass the ant component?
>> I use no ant scripts anymore...
>>
>
>
> I've opened bug
> 89195, ant content type over defined for <project> tag
> see
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=89195
>
> I've attached some of the above newsgroup exchange, but feel free
> to add your voice/suggestions to that bug.
Previous Topic:WTP 1.0M3 - Database Manager support for MySQL in "Servers Explorer"
Next Topic:web.xml: error in empty web project
Goto Forum:
  


Current Time: Sat May 10 04:49:36 EDT 2025

Powered by FUDForum. Page generated in 0.04457 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top