Eclipse XML Editor

C

Christine Mayer

Hi,

I am using Eclipse, and I installed the plugin Aptana to get its
Javascript support.
However it also offers a XML Editor, and it seems to be buggy - I have
a XML file that contains some german
"UMLAUTS" - special characters - and the editor displays an error for
these letters, however, as far as I know,
using UTF-8 it should not. I installed a trial version of Oxygen, but
the problem still exists, I assume that Aptana is still the default
XML Editor, and no idea how to change that.
So in other words:
1) How can I define the Editor I want to use for XML files
2) Do you know a good and free XML Editor for Eclipse
3) How can I make this weird error I get shown for german "umlauts"
like äöüß - disappear??

Thanks,

Christine
 
T

Thomas Fritsch

Christine said:
3) How can I make this weird error I get shown for german "umlauts"
like äöüß - disappear??
I suggest to write the XML-escape-sequences
ÄÖÜäöüß instead of ÄÖÜäöüß to avoid
any hassles with encodings.
 
P

Pavel Lepin

Thomas Fritsch said:
I suggest to write the XML-escape-sequences
ÄÖÜäöüß instead of
ÄÖÜäöüß to avoid any hassles with encodings.

Those are not XML escape sequences.

pavel@debian:~/dev/xml$ cat german.xml
<german>&Auml;&Ouml;&Uuml;&auml;&ouml;&uuml;&szlig;</german>
pavel@debian:~/dev/xml$ xmllint german.xml
german.xml:1: parser error : Entity 'Auml' not defined
<german>&Auml;&Ouml;&Uuml;&auml;&ouml;&uuml;&szlig;</german>
^
german.xml:1: parser error : Entity 'Ouml' not defined
<german>&Auml;&Ouml;&Uuml;&auml;&ouml;&uuml;&szlig;</german>
^
german.xml:1: parser error : Entity 'Uuml' not defined
<german>&Auml;&Ouml;&Uuml;&auml;&ouml;&uuml;&szlig;</german>
^
german.xml:1: parser error : Entity 'auml' not defined
<german>&Auml;&Ouml;&Uuml;&auml;&ouml;&uuml;&szlig;</german>
^
german.xml:1: parser error : Entity 'ouml' not defined
<german>&Auml;&Ouml;&Uuml;&auml;&ouml;&uuml;&szlig;</german>
^
german.xml:1: parser error : Entity 'uuml' not defined
<german>&Auml;&Ouml;&Uuml;&auml;&ouml;&uuml;&szlig;</german>
^
german.xml:1: parser error : Entity 'szlig' not defined
<german>&Auml;&Ouml;&Uuml;&auml;&ouml;&uuml;&szlig;</german>
^
pavel@debian:~/dev/xml$

Those would have to be defined in a DTD. Instead, character
references might be used, but the OP's description seems to
indicate an encoding problem. I would recommend posting a
more detailed description of the problem (and refraining
from multi-posting as well).
 
T

Thomas Fritsch

Pavel said:
Those are not XML escape sequences.
[...]
Oops, my bad! I confused it with HTML:

<html>&Auml;&Ouml;&Uuml;&auml;&ouml;&uuml;&szlig;</html>
 
I

Ian Wilson

Christine said:
Hi,

I am using Eclipse, and I installed the plugin Aptana to get its
Javascript support.
However it also offers a XML Editor, and it seems to be buggy - I have
a XML file that contains some german
"UMLAUTS" - special characters - and the editor displays an error for
these letters, however, as far as I know,
using UTF-8 it should not. I installed a trial version of Oxygen, but
the problem still exists, I assume that Aptana is still the default
XML Editor, and no idea how to change that.
So in other words:
1) How can I define the Editor I want to use for XML files
2) Do you know a good and free XML Editor for Eclipse

The Eclipse web tools platform (WTP) includes an XML editor.
http://www.eclipse.org/webtools/main.php

This includes web standard tools (WST)
http://www.eclipse.org/webtools/wst/components.html

Which includes Javascript and XML tools

When I downloaded Eclipse WTP, the XML editor was version 1.0.203 and
had plugin ID org.eclipse.wst.xmleditor.doc.user (according to "Help",
"About", "Plugin details")
3) How can I make this weird error I get shown for german "umlauts"
like äöüß - disappear??

I cut and pasted äöüß into the XML editor and validated the XML - no errors.

Maybe you could install Eclipse WTP and see if it cures your problem?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top