Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: New to XML >Thread Next - Re: New to XML Re: New to XMLTo: NULL Date: 12/4/2008 5:35:00 PM Hi, jodleren a écrit : > <more>Ø</more> if you write directly such a character, you have to mention the charset that you used with your editor: <?xml version="1.0" encoding="[the-encoding-that-contains-theOslash]"?> (note that if you don't specify the encoding, the default is utf-8 or utf-16, therefore you can also replace in utf-8 the Ø by the 2 bytes C3 98 (shown here in hexa)) otherwise, you can insert a character reference whatever the encoding used: <more>Ø</more> > <more>Ø</more> this doesn't work because XML is not HTML; an HTML parser relies on some hardcoded libraries of entities that maps Oslash to U+00D8, but with XML you have to declare this mapping explicitely (with ENTITY in the DTD) but I don't recommend such practice (trust me: don't do that) XML contains 5 hard-coded entities: & " ' < > "&Oslash;" means that you explicitely wants the sequence of text "Ø" and not an entity reference -- Cordialement, /// (. .) --------ooO--(_)--Ooo-------- | Philippe Poulard | ----------------------------- http://reflex.gforge.inria.fr/ Have the RefleX ! | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
