RE: [xml-dev] XML Max Character Value

From
Michael Kay <>
To
'Alan Gutierrez' <>, 'Bob Foster' <>
Date
2005-08-14T21:26:49Z
Thread
RE: [xml-dev] XML Max Character Value
> 
>     It gives me something to Google about, "surrogate pairs". I see
>     Jaxen has some code to convert them.

There's also code in Saxon - the XMLChar module, borrowed from Xerces. 
> 
>     Am I seeing that with Unicode in Java, you need to work with
>     String and not with individual char? That puts a dent in my
>     algorithm, which advanced along the characters in the string.
> 

Java 5 has reasonable support for Unicode characters above xFFFF, but if you
want your code to work in earlier JDK releases you need to do it yourself.

Michael Kay
http://www.saxonica.com/