[jdom-interest] Unicode & JDOM

Elliotte Rusty Harold elharo at metalab.unc.edu
Mon Nov 4 07:37:20 PST 2002


Hi all,

I am writing a program that transforms Java code into a flavor of XML.
Part of Character.java are lots Unicode characters. For example, on line 81:

public static final char   MIN_VALUE = '\u0000';


The null is not a legal XML character although it is a legal 
character in Java string literals. It cannot be used in XML 
documents. This has nothing to do with JDOM. It is a deliberate 
design decision in XML.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          XML in a  Nutshell, 2nd Edition (O'Reilly, 2002)          |
|              http://www.cafeconleche.org/books/xian2/              |
|  http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+



More information about the jdom-interest mailing list