You can use SchemaTypeVisitorImpl without using the generated sources, but classes under "impl" in the xmlbeans package hierarchy are implementation packages, designed to support the functionality of XMLBeans, not for direct use.
Check out the (intented for direct use) org.apache.xmlbeans.SchemaTypeElementSequencer which I think will do what you want if I understand the use case correctly. Note that this does not have backtrack capabilities but should be fast enough to basically replay the elements everytime you would want to backtrack. Also, IANAL, but I think your understanding of the Apache license is correct. Radu -----Original Message----- From: Lendle [mailto:[EMAIL PROTECTED] Sent: Monday, January 16, 2006 8:03 PM To: [email protected] Subject: add backtrack ability to SchemaTypeVisitorImpl Hi! May I use SchemaTypeVisitorImpl only without using xmlbean generated sources? This is because I want to give users a hint about what element can be inserted at some location before he/she really insert something. I've noticed that SchemaTypeVisitorImpl already have enough information about the correct element sequence under a schema type. I think I can use SchemaTypeVisitorImpl and possibly add backtrack functionality to this class for convenience. However, since many information needed are stored in private members, I cannot extend this class but have to directly modify the source. Is this a workable choice? Furthermore, if I modified the source code of SchemaTypeVisitorImpl.java and use the modification with other xmlbean source codes in a non-open source, commercial product, what I have to do is to include a file indicating the modification. Is my understanding to the apache style 2.0 license correct? If not, please correct me. Thanks!! Sincerely, Lendle Tseng --------------------------------------------------------------------- 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]

