if u don't mind can u explain with an example. i need this  one very
urgent.....

Soto, Alex wrote:
> 
> Yes remember to use anyType, in XMLBeans you can find lot of examples.
> Thanks of anyType you can return a w3c Node object or simply parse using
> XmlCursors. 
> 
> -----Mensaje original-----
> De: raov [mailto:[EMAIL PROTECTED] 
> Enviado el: miércoles, 28 de marzo de 2007 12:23
> Para: [email protected]
> Asunto: RE: using part of xsd file only
> 
> 
> Thanks Alex,
> 
> what i am understanding is create another xsd using old one( this contain
> whatever my require part only), if u don't mind can u exaplain using
> example code.
> 
> 
> 
> Soto, Alex wrote:
>> 
>> I think is not possible, but you can use the next approach. Use 
>> anyType type inside tags you won't need to be generated. Then 
>> generates another xsd with content that will go inside anyType. So 
>> with Xml you can validate both, but only tags outside anytype are 
>> generated by xml beans. Don't know if you understand me. Ask me without
>> any problem.
>> 
>> -----Mensaje original-----
>> De: raov [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 28 de 
>> marzo de 2007 11:46
>> Para: [email protected]
>> Asunto: using part of xsd file only
>> 
>> 
>> 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. 
>> 
>> 
>> --
>> View this message in context:
>> http://www.nabble.com/using-part-of-xsd-file-only-tf3478859.html#a9708
>> 879 Sent from the Xml Beans - User mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
>> La información contenida en el presente e-mail es confidencial y está 
>> reservada para el uso exclusivo de su destinatario. Se prohíbe 
>> estrictamente la distribución, copia o utilización de esta información 
>> sin el previo permiso de su destinatario. Si usted no fuera el 
>> destinatario, por favor notifíquelo inmediatamente al remitente y 
>> elimine el presente mensaje de su sistema informático.
>> 
>> Information contained in this e-mail is confidential and is intended 
>> for the use of the addressee only. Any dissemination, distribution, 
>> copying or use of this communication without prior permission of the 
>> addressee is strictly prohibited. If you are not the intended 
>> addressee, please notify the sender immediately by reply and then 
>> delete this message from your computer system.
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> --
> View this message in context:
> http://www.nabble.com/using-part-of-xsd-file-only-tf3478859.html#a9710877
> Sent from the Xml Beans - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> La información contenida en el presente e-mail es confidencial y está
> reservada para el uso exclusivo de su destinatario. Se prohíbe
> estrictamente la distribución, copia o utilización de esta información sin
> el previo permiso de su destinatario. Si usted no fuera el destinatario,
> por favor notifíquelo inmediatamente al remitente y elimine el presente
> mensaje de su sistema informático.
> 
> Information contained in this e-mail is confidential and is intended for
> the use of the addressee only. Any dissemination, distribution, copying or
> use of this communication without prior permission of the addressee is
> strictly prohibited. If you are not the intended addressee, please notify
> the sender immediately by reply and then delete this message from your
> computer system.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/using-part-of-xsd-file-only-tf3478859.html#a9711848
Sent from the Xml Beans - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to