users@jaxb.java.net

Re: "unexpected character literal " Validation Exception

From: Ryan Shoemaker - JavaSoft East <Ryan.Shoemaker_at_Sun.COM>
Date: Thu, 26 Feb 2004 15:09:49 -0500

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