Hi again,i found out (finally) a lot of things about implementation of XSD components,and now i need a specific help I want to construct a new type ,so i tried to use the SchemaTypeImpl class but the constructor of the class is private so i can't instantiate in order to use it for new type creation,and i remembered that this is occuring when the class's developer doesn't want to let the class be extented (thats why the writer sets the class to final) but i can't find out how is it possible for me to construct a SchemaType since the constructor is private,possibly there is another class to make a new type,but i couldn't find the way yet.
(the package to import and see what am i asking for is org.apache.xmlbeans.imp.schema.* ) (ha, i would like to mention that attribute implementations and global element implementation work fine .... that's irrelevant to the question but i state this in order to encourage someone who's trying grasp this chaos too :) ) So,i am asking for your help once again! Thanks in Advance On Mon, Dec 22, 2008 at 10:45 PM, Jacob Danner <[email protected]>wrote: > Hi Micheal, > I was suggesting you look into the source of those tools as a > reference point for what you are trying to do. In other words, the > inst2xsd tool generates a schema from a xml instance. You are > concerned with how to generate a schema using xmlbeans, so I would > start by looking at how the inst2xsd tool does it. > As far as a direct link, I'd say grab a copy of the source code for > the xmlbeans project and start looking there. Thats where I go when I > have questions. > -jacobd > > On Mon, Dec 22, 2008 at 12:39 PM, michael <[email protected]> wrote: > > First of all thank you for your quick answer, > > > > The first tool creates a schema from an instance document and for the > > second i have to search further to see the potentials. > > > > The problem is that i want to create components from scratch,with my > > willing and manage them.So,possibly the first i useless.These tools are > > accessible from xmlbeans API?i mean i can import the (jar?) into my code > > and use them as i now use the xmlbeans API? > > > > Do you have a direct link for further study because i couldn't find sth > > detailed(sth like a doc) over the internet except questions and general > > answers... > > > > thank you again > > > > > > > > Jacob Danner wrote: > >> I was just playing with a couple of xmlbeans' tools that did this over > >> the weekend. > >> Take a peek at the inst2xsd or sfactor tools and the source code > >> behind them. Both tools create schemas. > >> -jacobd > >> > >> On Mon, Dec 22, 2008 at 12:14 PM, michael <[email protected]> > wrote: > >> > >>> Hi, > >>> > >>> I couldn't find the way to create schema components via xmlbeans... e.g > >>> how i could make elements,types etc via xmlbeans? > >>> > >>> All the classes / interfaces have get & is methods and none has set or > >>> add methods ,so i'am wondering if there is a way to create new XSD > >>> components via xmlbeans... > >>> > >>> Are there any classes to support the schema component creation? > >>> > >>> Generally, if there is a way let me know or tell me where i can > >>> study!It's urgent!! > >>> > >>> Thanks in Advance > >>> > >>> --------------------------------------------------------------------- > >>> 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] > >> > >> > >> > > > > > > --------------------------------------------------------------------- > > 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] > >

