[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    RE: I am very new to xmlbean Plz help me
From:       raov <prasadvemula () gmail ! com>
Date:       2007-03-30 5:22:41
Message-ID: 9747457.post () talk ! nabble ! com
[Download RAW message or body]


hi Jacob,

I will go through links whatever u sent. I hope to complete this task. 
Any how thanks for u'r reply.



Jacob Danner wrote:
> 
> I recommend getting the srcs for the latest release first.
> http://xmlbeans.apache.org/sourceAndBinaries/index.html#XMLBeans+Source
> 
> Then get familiar with the APIs
> http://xmlbeans.apache.org/docs/2.2.0/reference/org/apache/xmlbeans/Sche
> maTypeLoader.html
> http://xmlbeans.apache.org/docs/2.2.0/reference/org/apache/xmlbeans/Sche
> maTypeSystem.html
> You'll want to look at the srcs for compilation APIs
> Then take a look at the srcs in the tests for some examples on how to
> use some of these APIs.
> http://svn.apache.org/viewvc/xmlbeans/trunk/test/src/compile/
> I just want to mention again, it seems to me like this might be
> possible, but I have never done, nor had the requirement to, compile
> only certain types of an XSD.
> 
> Best of luck,
> -Jacobd
> 
> 
> 
> -----Original Message-----
> From: raov [mailto:prasadvemula@gmail.com] 
> Sent: Wednesday, March 28, 2007 11:34 PM
> To: dev@xmlbeans.apache.org
> Subject: Re: I am very new to xmlbean Plz help me
> 
> 
> hi Jacob,
> 
> Thanks for u'r reply. I am using schema compiler "scomp" this is
> compiling
> entire xsd file but my requirement is compiling only part of xsd file
> means
> generate specified beans ( according to some complex types). if u don't
> mind
> can u send some useful links to me.
> 
> thanks
> raov
> 
> 
> Jacob Danner-2 wrote:
> > 
> > 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 <prasadvemula@gmail.com> 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: dev-unsubscribe@xmlbeans.apache.org
> > > > For additional commands, e-mail: dev-help@xmlbeans.apache.org
> > > > 
> > > > 
> > > > 
> > > 
> > > --
> > > View this message in context:
> > > 
> http://www.nabble.com/I-am-very-new-to-xmlbean-Plz-help-me-tf3478850.htm
> l#a9710927
> > > Sent from the Xml Beans - Dev mailing list archive at Nabble.com.
> > > 
> > > 
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
> > > For additional commands, e-mail: dev-help@xmlbeans.apache.org
> > > 
> > > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
> > For additional commands, e-mail: dev-help@xmlbeans.apache.org
> > 
> > 
> > 
> 
> -- 
> View this message in context:
> http://www.nabble.com/I-am-very-new-to-xmlbean-Plz-help-me-tf3478850.htm
> l#a9727808
> Sent from the Xml Beans - Dev mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: dev-help@xmlbeans.apache.org
> 
> 
> Notice:  This email message, together with any attachments, may contain
> information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
> entities,  that may be confidential,  proprietary,  copyrighted  and/or
> legally privileged, and is intended solely for the use of the individual
> or entity named in this message. If you are not the intended recipient,
> and have received this message in error, please immediately return this by
> email and then delete it.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: dev-help@xmlbeans.apache.org
> 
> 
> 

-- 
View this message in context: \
http://www.nabble.com/I-am-very-new-to-xmlbean-Plz-help-me-tf3478850.html#a9747457 \
Sent from the Xml Beans - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic