Re: [xml-dev] XML Max Character Value

From
'Alan Gutierrez' <>
To
Michael Kay <>
Date
2005-08-15T02:43:11Z
ID
<>
Thread
Re: [xml-dev] XML Max Character Value
* Michael Kay <> [2005-08-14 17:29]:
> > 
> >     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. 

    Perfect. Saxon is not a dependency, but it may as well be. I'm
    developing this B-Tree  to work with Saxon.

> >     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.

    I'm using Java 1.4.2, and I don't have plans to move to 1.5 any
    time soon. I'd like to get some adoption, and I don't think many
    people are ready to move to 1.5 yet.

    Thanks for your help.

--
Alan Gutierrez - 
    - http://engrm.com/blogometer/index.html
    - http://engrm.com/blogometer/rss.2.0.xml