Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: New to XML

From: Philippe Poulard <philippe.poulardNO@---------.-->
To: 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>&#216;</more>

>  <more>&Oslash;</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: &amp; &quot; &apos; &lt; &gt;

"&amp;Oslash;" means that you explicitely wants the sequence of text 
"&Oslash;" and not an entity reference

-- 
Cordialement,

               ///
              (. .)
  --------ooO--(_)--Ooo--------
|      Philippe Poulard       |
  -----------------------------
  http://reflex.gforge.inria.fr/
        Have the RefleX !


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent