encoded diacritics

G

Guest

How knows this?

Is it allowed using encoded diacritics, e.g. ö é in an XML-file?

When I open such XML-file with IE or Mozilla, they both say it's an error,
but it seems its not compliant with HTML.
 
J

Jukka K. Korpela

Is it allowed using encoded diacritics, e.g. ö é in an
XML-file?

It is allowed to use entity references in XML, but you need to define
them.
When I open such XML-file with IE or Mozilla, they both say it's an
error, but it seems its not compliant with HTML.

But what has HTML got to do with this?

This is actually a fairly complex issue. Well, maybe not so complex, but
confusing to people who think that XML is extended HTML (a misconception
that has probably been created intentionally, to some extent).

The short answer is that you cannot assume that HTML entities are
_predefined_ in XML, and there's usually no point in trying to use those
entities in XML (except for the few entities like < that _are_
predefined in XML). See http://www.cs.tut.fi/~jkorpela/www/ent.xml
for an attempt to explain this a bit more.
 

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

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top