xml-xmlbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ganga Sah <ganga_...@yahoo.com>
Subject RE: get/set methods for <xsd:any> element
Date Mon, 05 Jan 2004 20:01:00 GMT
Hi Eric,
My schema has following pattern:
<schema ..>
<element name="foo" type="FooType"/>

<xsd:complexType name="extType">
 <xsd:sequence>
  <xsd:any minOccurs="0" maxOccurs="unbounded"
namespace="##other"/>           
 </xsd:sequence>
</xsd:complexType>

<xsd:complexType name="FooType">
 <xsd:complexContent>
  <xsd:extension base="extType">         
   <xsd:sequence>
    <xsd:element name="bar" type="xsd:string" />
   </xsd:sequence>
   </xsd:extension>
  </xsd:complexContent>                	
</xsd:complexType>
</schema>

Correspong xml-fragment is:

<foo>
  <a:bbbb xmlns:a="aaaa">
  <bar>some-content</bar>
</foo>

I have got content of this XML instance in FooType
Java object.
How can I use xmlCursor to get(or set) the
un-named(xsd:any) element(first child of FooType
here)?
Could you help me by giving me a code snippet to do
this?

thanks a lot,
ganga




--- Eric Vasilik <ericvas@bea.com> wrote:
> We do not generate methods for the any elements. 
> However, you can use XmlCursor to navigate this
> content in an un-typed manner.
> 
> -----Original Message-----
> From: Ganga Sah [mailto:ganga_sah@yahoo.com]
> Sent: Monday, January 05, 2004 9:47 AM
> To: xmlbeans-dev@xml.apache.org
> Subject: get/set methods for <xsd:any> element
> 
> 
> I am unable to find/use get(set) methods in xmlbeans
> generated Java code for <xsd:any> element?
> 
> -ganga
> 
> __________________________________
> Do you Yahoo!?
> Find out what made the Top Yahoo! Searches of 2003
> http://search.yahoo.com/top2003
> 
> -
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:  
> xmlbeans-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> xmlbeans-dev-help@xml.apache.org
> Apache XMLBeans Project -- URL:
> http://xml.apache.org/xmlbeans/
> 
> 
> -
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:  
> xmlbeans-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> xmlbeans-dev-help@xml.apache.org
> Apache XMLBeans Project -- URL:
> http://xml.apache.org/xmlbeans/
> 


__________________________________
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
http://search.yahoo.com/top2003

- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Mime
View raw message