I can't state for certain as I've never tried, but you might be able to do this using the schemacompiler, schematypesystem, and schematypeloader apis. If you grab the srcs from the depot there may be some code/tests that provide some insight into how you an manipulate these apis. I'm curious how your requirement came about. Can you give us somemore info about how/why you can only have certain types from the schema compiled? thanks, -Jacob Danner
On 3/28/07, raov <[EMAIL PROTECTED]> wrote:
Thank you Poorna, i had already done that way. but i need to know is there any other possibilities. any how thanks for u'r reply Poornachandran wrote: > > I dont think, there is any way to do this. I think, you can simply > ignore the other classes generated. > > ~Poorna > > raov wrote: >> Hi, >> >> I am very new to xml beans. i have an xsd file >> >> <xs:schema targetNamespace="http://openuri.org/easypo" >> xmlns:po="http://openuri.org/easypo" >> xmlns:xs="http://www.w3.org/2001/XMLSchema" >> elementFormDefault="qualified"> >> >> <xs:element name="purchase-order"> >> <xs:complexType> >> <xs:sequence> >> <xs:element name="customer" type="po:customer"/> >> <xs:element name="line-item" type="po:line-item" >> minOccurs="0" maxOccurs="unbounded"/> >> </xs:sequence> >> </xs:complexType> >> </xs:element> >> <xs:complexType name="customer"> >> <xs:sequence> >> <xs:element name="name" type="xs:string"/> >> <xs:element name="address" type="xs:string"/> >> </xs:sequence> >> </xs:complexType> >> <xs:complexType name="line-item"> >> <xs:sequence> >> <xs:element name="description" type="xs:string"/> >> <xs:element name="per-unit-ounces" type="xs:decimal"/> >> <xs:element name="price" type="xs:double"/> >> <xs:element name="quantity" type="xs:int"/> >> </xs:sequence> >> </xs:complexType> >> >> </xs:schema> >> >> when i was compiling this xsd file i am getting beans >> customer,lineitem,purchaseorderdocument, purchaseorder. but my >> requirement >> is, I want to compile part of xsd file means need to generate only >> "customer" related beans no need to generate "lineItem" beans. Is there >> any >> way to compile part of xsd file. if it's there or not let me know. kindly >> help ASAP. >> >> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/I-am-very-new-to-xmlbean-Plz-help-me-tf3478850.html#a9710927 Sent from the Xml Beans - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- 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]