Re: char and Character mapping to XML

From: Rahul Sharma <>
Date: Mon, 22 Jul 2002 07:19:49 -0700

Sam wrote:
> Section 5.3.1 and 5.3.2 of the specs have no mention of a char
> or java.lang.Character class.

   JAX-RPC 1.0 does not define standard mapping for char and Character.

> Is there any reason why ? Also in the same sections define the
> mapping of primitives but are silen about the corresponding wrappers
> (Integer, Float etc)

   The section 5.3.1 (after the table) does define the mapping of the
   wrapper classes.

> Isnt it true that an java.lang.Integer should also map to an xsd:int?

   Yes, except that nillable has to be true in case of a wrapper class.
   More details are in the section 5.3.1 last paragraphs.

> and a char should map to a string (with facet of length=1)
> Or is this not a requirement by the specs?