Schema generation from Java classes (Java 1.4)

2008-11-25 Thread Abid Hussain
Hello everybody, I'm looking for a tool which can map existing classes to a schema. In Jaxb 2.0 this is possible (the tool is called schemagen) but only with Java 1.5. Jaxb 1.0 supports Java 1.4 but doesn't have such a tool. Does anybody know how to do so with Java 1.4? AFAIK there is no

RE: extracting the schema (XSD/WSDL) from xmlbeans in runtime

2008-11-25 Thread Asaf Lahav
Is it possible to extract the schema document out of the generated XmlBeans? From: Asaf Lahav [mailto:[EMAIL PROTECTED] Sent: Sunday, November 23, 2008 7:30 PM To: 'user@xmlbeans.apache.org' Subject: extracting the schema (XSD/WSDL) from xmlbeans in runtime Hi everybody, Is there a way

RE: extracting the schema (XSD/WSDL) from xmlbeans in runtime

2008-11-25 Thread Wing Yew Poon
Asaf, If I understand you right, you have compiled the schema (using scomp), resulting in a jar (containing the generated XMLBeans classes and other artifacts), which is in your runtime classpath, and you want to access the schema document at runtime. The following methods should be helpful to

Re: Schema generation from Java classes (Java 1.4)

2008-11-25 Thread Jacob Danner
I don't think XMLBeans has what you are looking for in terms of creating a schema from existing java sources in the way JAXB's schema gen tool does. Have you looked at Castor or JIBx? -jacobd On Tue, Nov 25, 2008 at 4:16 AM, Abid Hussain [EMAIL PROTECTED] wrote: Hello everybody, I'm looking

RE: Strange behaviour after element is set to null

2008-11-25 Thread Radu Preotiuc-Pietro
Better late than never... I finally got around to trying this out myself, and what happens is that simply when you run the code in Maven, the JVM somehow is started with the -ea switch, while when running in Eclipse it is not. I will have to open a JIRA issue for this to see if the assert is

RE: error validating xsi:type with unprefixed namespace

2008-11-25 Thread Radu Preotiuc-Pietro
Hi, Are you doing a straight 'validate schema.xsd instance.xml' to test this or is it part of a more complex scenario? If you do straight validation I am confident that it works like you expect. Radu From: Ole Matzura [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2008