users@jaxb.java.net

Re: How do I get the CDATA data ?

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Thu, 03 Apr 2003 07:56:39 -0800

Is there any chance you misunderstand what "mixed content" means?
If you only put text inside <myElement>, why don't you just define your
schema as:

<xs:element name="myElement">
  <xs:complexType>
    <xs:simpleContent>
      <xs:extension base="xs:string"/>
    </xs:simpleContent>
    <xs:attribute ... />
  </xs:complexType>
</xs:element>

And if you do allow elements in <myElement>, would you tell me why you
want to just concatenate strings?

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