The type shown below would appear to be the same as:
<xs:complexType name="anyDataType">
<xs:sequence>
<xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
which, as pointed out, is nothing more than a series of child elements.
What it the reason for writing it the way it is written below?
Regards,
Ed Day
Objective Systems, Inc.
----- Original Message -----
From: "Ryan Shoemaker - JavaSoft East" <Ryan.Shoemaker_at_Sun.COM>
To: <users_at_jaxb.dev.java.net>
Sent: Thursday, February 26, 2004 3:09 PM
Subject: Re: "unexpected character literal " Validation Exception
> Sam Cheung wrote:
>
> > <xs:complexType name="anyDataType">
> > <xs:annotation>
> > <xs:documentation>Any element and attribute
</xs:documentation>
> > </xs:annotation>
> > <xs:complexContent>
> > <xs:restriction base="xs:anyType">
> > <xs:sequence>
> > <xs:any processContents="lax" minOccurs="0"
> > maxOccurs="unbounded"/>
> > </xs:sequence>
> > </xs:restriction>
> > </xs:complexContent>
> > </xs:complexType>
> >
> >
> > My souce is this:
> > ".... <Details>No valid recipients</Details> ...."
> >
>
> Sam,
>
> My understanding is that this complexType definition only
> allows child elements and not charater data. You either
> need to add @mixed="true" to the complexType or change it
> to contain simpleContent.
>
> Thanks,
>
> --Ryan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net