Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

Eclipse XML Editor

Thread view: 
Christine Mayer - 17 Jul 2007 15:05 GMT
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
Thomas Fritsch - 17 Jul 2007 15:14 GMT
Christine Mayer schrieb:
> 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.

Signature

Thomas

Pavel Lepin - 17 Jul 2007 15:28 GMT
Thomas Fritsch <i.dont.like.spam@invalid.com> wrote in
<newscache$k8ublj$p9i$1@news.ops.de>:
> Christine Mayer schrieb:
>> 3) How can I make this weird error I get shown for german
>> "umlauts" like äöüß - disappear??
> I suggest to write the XML-escape-sequences
> &Auml;&Ouml;&Uuml;&auml;&ouml;&uuml;&szlig; 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).

Signature

...the pleasure of obedience is pretty thin compared with
the pleasure of hearing a rotten tomato hit someone in the
rear end. -- Garrison Keillor

Thomas Fritsch - 17 Jul 2007 15:50 GMT
> Thomas Fritsch <i.dont.like.spam@invalid.com> wrote in
> <newscache$k8ublj$p9i$1@news.ops.de>:
[quoted text clipped - 4 lines]
>
> Those are not XML escape sequences.
[...]
Oops, my bad! I confused it with HTML:

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

Signature

Thomas

Ian Wilson - 17 Jul 2007 15:55 GMT
> Hi,
>
[quoted text clipped - 10 lines]
> 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?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.