I had the same problem. Search this list archives, this topic was covered a few times argyn
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 21, 2005 5:41 PM > To: [email protected] > Subject: handling xs:any? > > > XmlBeans 2.0.0 does not generate accessors for xs:any > elements. I'm pretty to new to Xml as a daily-use technology > and XmlBeans and I'm > so difficulty comprehending the sample for Any. > > In short, I have a complexType like: > > <complexType name="BaseType"> > <sequence> > <any namespace="##other" minOccurs="0" > maxOccurs="unbounded" > processContents="lax"/> > </sequence> > <anyAttribute namespace="##other" > processContents="lax"/> > </complexType> > > and I would like to access the 'any' data appearing there. I > know for a > given extension of the BaseType, what I expect to appear there; it's > data from another namespace/schema that I also have xmlbean > bindings for. > > In some cases - this is a single element, in others there > will be many > elements. > > I'd like to implement some helpers that return either a > single XmlObject > (when that is I expect to be contained) or a List of > XmlObjects for the > elements that are in the ##other namespace. > > e.g. a Util class with statics like: > > public static XmlObject getAnyObject(BaseType bt); > public static List getAnyObjectsAsList(BaseType bt); > > I'm not even sure how to get started, so I'm looking for > advice of any sort. > > Thanks in advance, > --Kent > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

