Re: Re-Generating schema from the generated code

2005-10-04 Thread Eran Chinthaka
Hi Lawrence, Thanks for the reply. I can get theSchemaTypeSystem. But I don't want to traverse in that. I just need to generate the schema, preferably in to a String and want to add that as the schema in the WSDL. So how can I get the schema as a String. FYI : We generate the code not prov

Re: Re-Generating schema from the generated code

2005-10-04 Thread Eran Chinthaka
First, thanks for the early reply. We don't use Scomp for compiling and we use the api, XmlBeans.compileXmlBeans. This invocation do not need a schema directory. Even the Scomp seems internally calling SchemaTypeSystemCompiler. We are now trying to use the SchemaTypeSystemCompiler.compile(Par

RE: ordered collection implementation for s of arbitrary cardinality???

2005-10-04 Thread Radu Preotiuc-Pietro
XmlBeans supports this scenario very well. You would probably want to check out this sample, it seems relevant to what you are trying to do: http://xmlbeans.apache.org/samples/OrderMatters.html Radu -Original Message- From: Markus Pilzecker [mailto:[EMAIL PROTECTED] Sent: Tuesday, Octobe

RE: comparing enums with == vs. equals()

2005-10-04 Thread Radu Preotiuc-Pietro
Yes, it is safe. Radu -Original Message- From: Steve Davis [mailto:[EMAIL PROTECTED] Sent: Thursday, September 22, 2005 10:57 AM To: user@xmlbeans.apache.org Subject: comparing enums with == vs. equals() Is it safe to use the == operator instead of the equals() method to inspect a pars

ordered collection implementation for s of arbitrary cardinality???

2005-10-04 Thread Markus Pilzecker
Hello *, I'm just trying to deserialise BPEL files with xmlbeans. The problem, I stumbled over is, that I do not find an adequately simple possibility to get an order-preserving access to elements, which are specified as in the XML Schema. bpws:activity is specified as the list of alterna

Re: Re-Generating schema from the generated code

2005-10-04 Thread David Jencks
The maven 1 (hosted at xmlbeans) and maven 2 (I think hosted with maven 2) xmlbeans plugins may not put the original schemas in this location. I'd like to investigate and fix that. Is there a specification for what GeneratedXMLBean.type.getSourceName() returns? Is it the file name with n

RE: Re-Generating schema from the generated code

2005-10-04 Thread Lawrence Jones
There is also programmatic access to an object model representing the schema. From any generated bean, say a class called Abc, you can call Abc.type.getTypeSystem() This returns a SchemaTypeSystem on which you can execute all sorts of methods concerning the contents of the schema. Cheers, Lawre

RE: Re-Generating schema from the generated code

2005-10-04 Thread Cezar Andrei
Scomp saves the original schema files inside the generated jar, and you can get to it in the following way: InputStream is = XMLParsers.class.getClassLoader().getResourceAsStream("schemaorg_apache_ xmlbeans/src/" + GeneratedXMLBean.type.getSourceName()); Cezar > -Original Message- > From

Re-Generating schema from the generated code

2005-10-04 Thread Eran Chinthaka
Hi, I'm from Apache Axis2 team. I need a help in generating schema using XMLBeans. My scenario is like this. I have bunch of classes created using a given xml schema, by XMLBeans. But at some time, I do not have the schema file which was used to generate the code, but I have all the classes g