Re: do I have to use the scomp to generate classes?

2006-03-09 Thread Jay Dickon Glanville
Thanks Lawrence. You're answer makes me beg the question: if the java source alone is useless (you need both the TypeSystemHolder and the .xsb files in order to run), what is the purpose or usefulness of the "src only" parameter? Thanks JDG On 3/9/06, Lawrence Jones <[EMAIL PROTECTED]> wrote: >

RE: generationg bean from schema with different name

2006-03-09 Thread Lawrence Jones
Hi all   Alex is quite right about .xsdconfig, and his example will work fine but note it will change the _package name_ of all generated beans for that namespace. If you wanted to change the class name of the generated bean then that too is supported via .xsdconfig but this time using th

RE: substituting simple types

2006-03-09 Thread Lawrence Jones
Don't worry. It could have been a bug and then we would definitely have wanted to know about it. Good luck with your project. Cheers, Lawrence > -Original Message- > From: Ramin Roham-Pour [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 09, 2006 11:09 AM > To: user@xmlbeans.apache.org

RE: substituting simple types

2006-03-09 Thread Ramin Roham-Pour
Hi Lawrence The comparing means that I wrote a compare-method that takes the nodes which are received by "getDomNode()" as argument. As true is the right answer even if those nodes are not equal but one is just "more" than the other and there might be more content than defined in the schema, this

RE: do I have to use the scomp to generate classes?

2006-03-09 Thread Lawrence Jones
Hi Jay No you don't have to use scomp. Actually there is a clue to what's wrong in stack trace below. The line "Make sure the generated binary files are on the classpath" tells you what you need. The problem is that in older versions of generated XmlBeans there is a hardcoded reference to the Typ

do I have to use the scomp to generate classes?

2006-03-09 Thread Jay Dickon Glanville
Hello all. I have a situation here that I'd a little confused about. Do I have to use the schema compiler from XmlBeans to compile the java files into classes or can I use any compiler? The reason I ask this is because I'm using the scomp ant task to generate just the java files, and then using

re: synchronization in generated code by xmlbeans

2006-03-09 Thread toadie D
http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200402.mbox/[EMAIL PROTECTED]   I just updated to the latest V2 release and am still seeing synchronized codes being generated   e.g.  synchronized (monitor())   I am just curious as to how well this performs on the server side application

Re: accessing key objects via keyrefs

2006-03-09 Thread Alex Soto
Ok i understand what you means now. I found the same problem some time ago, i because i couldn't find a way, i choose xpath option. I wish someone else could gave his opinion. El dj 09 de 03 del 2006 a les 15:36 +, en/na DM va escriure: Hi, Thanks for your response. I don't see home XP

Re: accessing key objects via keyrefs

2006-03-09 Thread DM
Hi, Thanks for your response. I don't see home XPath will help me. I'm really just asking whether XMLBeans contains built-in support for retrieving a referenced object. The reference is defined in the schema using an xs:keyref which refers to an xs:key. Cheers, Don --- Alex Soto <[EMAIL PROTEC

Re: accessing key objects via keyrefs

2006-03-09 Thread Alex Soto
If i understand your problem you could do using an XPATH _expression_. See xpath tutorial in xmlbeans page. Remeber to add Saxon jar to classpath. El dj 09 de 03 del 2006 a les 15:08 +, en/na DM va escriure: Hi, My XML docs contain a bunch of elements that look like this: and

accessing key objects via keyrefs

2006-03-09 Thread DM
Hi, My XML docs contain a bunch of elements that look like this: and another bunch of elements that look like this: The "mp-group-ref" attribute is defined as a keyref, which points to an (the "id" attribute of the the latter is defined as a key). Is there any way using XMLBeans t

Re: generationg bean from schema with different name

2006-03-09 Thread Alex Soto
yes using a file ended with .xsdconfig. I send you an example:   xmlns:xb="http://xml.apache.org/xmlbeans/2004/02/xbean/config">   http://www.w3.org/2000/09/xmldsig#"> com.example.xmlbeans   BE aware because this file must be into classpath. In ant file do : Look that fi

generationg bean from schema with different name

2006-03-09 Thread pat
Hi all, I want to generate xmlbean from the xml schema but with different name than it is in the schema (e.g. in schema is Beans and generated will be MyBean). Why I need it is that I need to use AXIS2 with XMLBeans support, but on the client side I need different names os on the server - this is

Schema generator not generating certain classes.

2006-03-09 Thread Eamonn Rohan
Hi everyone, I'm developing an application that takes in a schema defined by a third party and uses XML beans to parse out the content and also to create the same messages from data in the app. Each xsd file defining a particular message (of which there are about 17) uses an include statemen