getting value of invalid enum

2007-05-25 Thread Les Walker
Hi Is it possible to "get" an attribute value for an enumerated simpleType when it is invalid? The document being read contains invalid values to certain restricted attributes and when the getter for the generated bean is invoked to read it, an XmlValueOutOfRangeException is thrown. The document i

Re: runtime compilation of java source files

2007-05-25 Thread Jacob Danner
Hi Ajay, The code that does this in XmlBeans lives in CodegenUtil. http://svn.apache.org/viewvc/xmlbeans/trunk/src/xmlcomp/org/apache/xmlbeans/impl/tool/CodeGenUtil.java?revision=224386&view=markup Otherwise the javac tool has a programmatic interface via: com.sun.tools.javac.Main you can read a

RE: xmlbeans.compileXmlBeans() - how to specify .xsdconfig

2007-05-25 Thread Ajay Aggarwal
Thanks Jacob! -Original Message- From: Jacob Danner [mailto:[EMAIL PROTECTED] Sent: Friday, May 25, 2007 2:12 PM To: user@xmlbeans.apache.org Subject: Re: xmlbeans.compileXmlBeans() - how to specify .xsdconfig In this case, you pass in an implementation of the BindingConfig class http://

runtime compilation of java source files

2007-05-25 Thread Ajay Aggarwal
This is not specific to XmlBeans, but I thought people here might have some good suggestions. I am using XmlBeans.compileXmlBeans() to compile my schema and create Java source files at runtime. Now I need to compile them. What tools/technologies can I use to compile java sources at runtime?

java ordering and numeric values of xml enumerations

2007-05-25 Thread Raul Acevedo
Does XmlBeans guarantee that the Java enumerations it creates for XML enumerations: 1. Are sequentially numbered, using the same order in the WSDL 2. Start with index 0 (or 1) 3. The toString() of the resulting Java enum yields the exact string used in the WSDL enum These seem like logical ass

Re: xmlbeans.compileXmlBeans() - how to specify .xsdconfig

2007-05-25 Thread Jacob Danner
In this case, you pass in an implementation of the BindingConfig class http://xmlbeans.apache.org/docs/2.2.0/reference/org/apache/xmlbeans/BindingConfig.html -Jacob Danner On 5/25/07, Ajay Aggarwal <[EMAIL PROTECTED]> wrote: When I use the command line tool I can use .xsdconfig file to speci

xmlbeans.compileXmlBeans() - how to specify .xsdconfig

2007-05-25 Thread Ajay Aggarwal
When I use the command line tool I can use .xsdconfig file to specify the default package name: http://www.bea.com/2002/09/xbean/config";> com.foo.myapp How do I do the same while compiling programmatically, i.e.via XmlBeans.compileXmlBeans()? I couldn't find the

Re: XMLBeans to generate big files? / Namespaces

2007-05-25 Thread Edward Blazer
1st question: i can't answer 2nd question: This really boils down to chunking the information into manageable sizes. I found this article a while ago and found it useful on a project with large XML and low computing resources. http://www.devx.com/xml/Article/34037 Good luck On 5/25/07, Boudigu

XMLBeans to generate big files? / Namespaces

2007-05-25 Thread Boudigué Alioum
Hi I just have 2 questions: I tried XML Beans the last two days and I generated the XML instances I needed: The problem is : the second prefix of my namespace is "sw4" but in the generated XML, i got "urn" instead of "sw4". I wasn't my intention ;-). Second question: can I use XMLBeans to gene

RE: Cannot find SchemaIdentityConstraints in particles

2007-05-25 Thread Les Walker
Thanks Radu That seems to have taken care of it. Much appreciated Les -Original Message- From: Radu Preotiuc-Pietro [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 23, 2007 9:39 PM To: user@xmlbeans.apache.org Subject: RE: Cannot find SchemaIdentityConstraints in particles Here's what

Re: Force a namesapce

2007-05-25 Thread Jorge Rodríguez Sacristán
Thanks Christian. I'll check it. Regards, Jorge. Christian Kaltepoth escribió: Hi Jorge, I think you will need some kind of 'post-processing' of your document to achieve this. But this should be very easy by using XmlCursor. You can find the some documentation here: http://xmlbeans.apache.o

Re: Force a namesapce

2007-05-25 Thread Christian Kaltepoth
Hi Jorge, I think you will need some kind of 'post-processing' of your document to achieve this. But this should be very easy by using XmlCursor. You can find the some documentation here: http://xmlbeans.apache.org/docs/2.0.0/guide/conNavigatingXMLwithCursors.html And there is also a useful cha

Re: Force a namesapce

2007-05-25 Thread Jorge Rodríguez Sacristán
Thanks Radu, but I think I wasn't very clear. I'll try with an example: http://www.x.com/XXX"* xmlns:ds="http://www.w3.org/2000/09/xmldsig#";..> http://www.x.com/XXX"*.> *xmlns:css="http://www.x.com/XXX"*>