Cannot open certain xml file with xml editor [message #59279] |
Thu, 30 December 2004 22:47 |
Eclipse User |
|
|
|
Originally posted by: will70.gmail.com
Hello,
I'm having this strange behaviour when I open an xml file with a certain
tag. I did some research and found some related bugs to my problem in the
eclipse bug database (Bug 78340).
I created a simple xml file that looks like the following:
<?xml version="1.0" encoding="UTF-8"?>
<project>
<parent>
<child>
<property></property>
</child>
</parent>
</project>
and I get the following error message when I reopen it in the XML Source
Page Editor:
Cannot open default editor on Sample.xml. Editor could not be initialized.
The culprit is the <project> tag and it has to be the first tag in the xml
file.
On the other hand the following xml file opens correctly in the XML Source
Page Editor:
<?xml version="1.0" encoding="UTF-8"?>
<parent>
<child>
<property>
<project></project>
</property>
</child>
</parent>
Here the <project> tag is nested.
I just want to know if this is a bug or it's just happening to me.
thxs,
Will
|
|
|
|
Re: Cannot open certain xml file with xml editor [message #59387 is a reply to message #59304] |
Fri, 31 December 2004 03:56 |
Eclipse User |
|
|
|
Originally posted by: will70.gmail.com
David Williams wrote:
> We (WTP editors) do have some work to do to allow/enable this kind of use,
> but I'm wondering ... is it really an ant file you are creating?
I noticed this problem when I was trying to open a maven.xml file.
|
|
|
Re: Cannot open certain xml file with xml editor [message #59412 is a reply to message #59279] |
Fri, 31 December 2004 04:14 |
Eclipse User |
|
|
|
Originally posted by: will70.gmail.com
I'd like to add that even after I removed the initial <project> tag with
the text editor, I was still unable to open the file with the XML Source
Page Editor. Only after I restarted eclipse was I able to open the file.
Will
Will Lopez wrote:
> Hello,
> I'm having this strange behaviour when I open an xml file with a certain
> tag. I did some research and found some related bugs to my problem in the
> eclipse bug database (Bug 78340).
> I created a simple xml file that looks like the following:
> <?xml version="1.0" encoding="UTF-8"?>
> <project>
> <parent>
> <child>
> <property></property>
> </child>
> </parent>
> </project>
> and I get the following error message when I reopen it in the XML Source
> Page Editor:
> Cannot open default editor on Sample.xml. Editor could not be initialized.
> The culprit is the <project> tag and it has to be the first tag in the xml
> file.
> On the other hand the following xml file opens correctly in the XML Source
> Page Editor:
> <?xml version="1.0" encoding="UTF-8"?>
> <parent>
> <child>
> <property>
> <project></project>
> </property>
> </child>
> </parent>
> Here the <project> tag is nested.
> I just want to know if this is a bug or it's just happening to me.
> thxs,
> Will
|
|
|
|
Powered by
FUDForum. Page generated in 0.03958 seconds