Hi, sorry for the late reply ... just trying to pick thsi up.
Werner azimo wrote: > Hello again, > > > Werner Guttmann wrote: >> Sure. >> >> azimo wrote: >>> I believe the answer to both a) and b) are yes but I must check with the >>> guys who are actually working on this. I will get them to read this >>> thread >>> too and then I will answer back tomorrow. >>> >>> Thanks for the correspondence so far, >>> >>> Archie >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> >> > we discussed it a bit here at the workplace and also read up some more on > the XML standard. Answers to both questions is yes. > > We basically have one question: > > If the below schema definition does not create an error when someone sends > an empty element (either by <SomeNiceElementName></SomeNiceElementName> or > <SomeNiceElementName/>) what is missing in the definition or in the way we > use Castor? As it is, even with the Wrapping set to true (i.e. not using > primitive types in the generated class files) we get a default value of > zero. > > <xs:element name="SomeNiceElementName" minOccurs="0"> > <xs:annotation> > <xs:documentation/> > </xs:annotation> > <xs:simpleType> > <xs:restriction base="xs:integer"> > <xs:totalDigits value="5"/> > </xs:restriction> > </xs:simpleType> > </xs:element> Okay, let's try to cut things a bit shorter: can you please supply me with the following things: a) a *minimal* XML schema b) your castorbuilder.properties (file) c) oen or more sample XML documents that you'd like to see unmarshalled against the XML schema supplied. Please try to keep the individual artefacts as minimal as possible. Once I have got all these things, I will generate code myself and try to unmarshal against the XMl documents supplied. Please note that my turna-round time might be longer than usual, as there's quite a high (Castor-related) work-load on myself (GSoC mentorship, extension of the XMl code generator for Castor JDO, ...) If that's not acceptable to you, you have the option to take up professional services (where I or any other committer will be able to spend dedicated day-time with your problem). Werner > > We noticed in the XML standard some differance between simpleType and > complexType where it said that simpleType always has a value. Is it this > that kicks in and sets a default to zero even if we don't want it? Would it > solve it if we had a complexType instead? > > Thanks, > > Archie --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

