RE: Dynamically generating java classes from XSD file using XmlBeans

2006-06-30 Thread Radu Preotiuc-Pietro
Also XmlBeans.compileXmlBeans() is a good place to look at because, unlike the script, is part of the "public" API which means backards-compatbility and better documentation. Radu -Original Message- From: Arif Shaon [mailto:[EMAIL PROTECTED] Sent: Friday, June 30, 2006 5:09 PM To: user@

RE: Dynamically generating java classes from XSD file using XmlBeans

2006-06-30 Thread Arif Shaon
Thank you very much both. Its really helpful. Cheers Arif On Jul 1 2006, Wing Yew Poon wrote: Arif, Nathan is right. If you look at the scomp script, it basically calls java on org.apache.xmlbeans.impl.tool.SchemaCompiler with your arguments. Look at the xmlbeans source in the svn repository

Also new to xmlbeans - please help me!

2006-06-30 Thread Turd Sandwich
Hi everyone!I'm a dumbass!I can't get a simple example working, but instead of telling you what the problem is, I'm just going to tell all of you how incompetent I am.Can anyone please do my job for me? greetings,Turd

New to xmlbeans - please help me!

2006-06-30 Thread Loiane
Hi everyone!I'm new to xmlbeans and i'm having some problems here.I found some examples how to use xml beans but no one is working.Can anyone please send me a working example how to use xmlbeans? greetings,Loiane

RE: Dynamically generating java classes from XSD file using XmlBeans

2006-06-30 Thread Wing Yew Poon
Arif, Nathan is right. If you look at the scomp script, it basically calls java on org.apache.xmlbeans.impl.tool.SchemaCompiler with your arguments. Look at the xmlbeans source in the svn repository. SchemaCompiler.java is under the src/xmlcomp/ hierarchy. SchemaCompiler has a static nested class S

RE: how to save the whole document (create instance in memory)info to a file in xml format?

2006-06-30 Thread Radu Preotiuc-Pietro
Try dumping the doc using pli81doc.toString(); that will tell you if the data really got into the document or not: I have never heard of a case where the data was in the right document, yet .toString() failed to print it. Radu -Original Message- From: Quynh-Anh Nguyen [mailto:[EMAIL PROT

Re: Dynamically generating java classes from XSD file using XmlBeans

2006-06-30 Thread Nathan Sowatskey
Hi Imagine that the CLI tool you use is really just a shell script calling java on a java class file which has a main that takes the arguments of the file that you want to compile, and then reads and compiles it. So, what you want to do is find the java class that is invoked by the scri

Dynamically generating java classes from XSD file using XmlBeans

2006-06-30 Thread Arif Shaon
Hi, I am fairly new to XMLBEans. I know one can generate java classes from xsd (XML SChema) file using scomp. But I was wondering if there is any way it would be done on the fly. For Example, the user would be able to specify the file path for the XSD file to the program, and the program would

SV: Need help with XmlCursor

2006-06-30 Thread Mikael.Lowgren
Hi, I think the problem you're having is that your cursor get "reseted" at your second executeQuery statement. I had a similar problem, and I solved it by creating new cursors at the point where I wanted to continue the search. Instead of: XmlCursor newCursor = cursor.execQuery("//PhysicalLo