users@jaxb.java.net

Re: CDATA in marshalling output?

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 20 May 2003 08:41:41 -0700

> My recommendation on how to implement this would be something along the lines of:
>
> <xsd:simpleType name="description">
> <xsd:restriction base="xsd:string">
> <xsd:annotation>
> <xsd:appinfo>
> <jaxb:impl type="CDATA"/>
> </xsd:appinfo>
> </xsd:annotation>
> </xsd:restriction>
> </xsd:simpleType>
>
> or, even better:
> <xsd:element name="description" type="jaxb:CDATA" />

Thank you for the input.

I'm just brain storming here; how about

    <xs:element name="foo" type="xs:string">
      <xs:annotation><xs:appinfo>
        <xjc:useCDATA />
      </ ></ >
    </ >

regards,
--
Kohsuke KAWAGUCHI                  408-276-7063 (x17063)
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com