[JaxMe-0.5.2] JM_EVENT_UNEXPECTED_CHILD_ELEMENT

2007-01-19 Thread Hilco Wijbenga
Hi all, I have the following very simple XSD (test.xsd): http://www.w3.org/2001/XMLSchema"; xmlns:abc="http://abc.org"; targetNamespace="http://abc.org"; JaxMe successfully genera

Re: [JaxMe-0.5.2] JM_EVENT_UNEXPECTED_CHILD_ELEMENT

2007-01-19 Thread Jochen Wiedmann
On 1/19/07, Hilco Wijbenga <[EMAIL PROTECTED]> wrote: http://www.w3.org/2001/XMLSchema"; xmlns:abc="http://abc.org"; targetNamespace="http://abc.org"; You do not have elementFormDefault="true" That means, that local elements (like "sub" in your case) have the default name

Re: [JaxMe-0.5.2] JM_EVENT_UNEXPECTED_CHILD_ELEMENT

2007-01-19 Thread Hilco Wijbenga
On 1/19/07, Jochen Wiedmann <[EMAIL PROTECTED]> wrote: On 1/19/07, Hilco Wijbenga <[EMAIL PROTECTED]> wrote: > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:abc="http://abc.org"; > targetNamespace="http://abc.org"; You do not have elementFormDefault="tru

Re: [JaxMe-0.5.2] JM_EVENT_UNEXPECTED_CHILD_ELEMENT

2007-01-19 Thread Jochen Wiedmann
On 1/19/07, Hilco Wijbenga <[EMAIL PROTECTED]> wrote: Yes, that works. Thanks! It should be "qualified", though, not "true"? (Eclipse to the rescue!) :-) "True". :-) I'm afraid that, even though everything works now, I still don't quite understand what the problem was. Where can I read up o

Restrictions

2007-01-19 Thread Hilco Wijbenga
I tried something like this: The resulting code seems to ignore the restriction (i.e. I can set a value of 1 without any complaint). Looking at the code that's not too surprising: I see nothing resembling a check for at least 2. Restrictions are not listed on the "Missing feat

Customised method name

2007-01-19 Thread Hilco Wijbenga
I was hoping the following would generate "hasSomething" as a method name instead of "isSomething". I get an error that xjb:bindings is an unknown child element of xjb:schemaBindings. http://www.w3.org/2001/XMLSchema"; xmlns:jxb="http://java.sun.com/xml/ns/jaxb"; jxb:version="1.0" xmlns:abc="