RE: [castor-user] How to add comment in XML output ?

2005-11-10 Thread Diogo Quintela \(EF\)
marshaller.setSupressXMLDeclaration(true); Isn't this for that? To prevent castor to output xml declaration ? I've used it with success. Diogo --- Diogo Bacelar Quintela EF - Tecnologias de Informação, Lda. Av. António Serpa, 26 - 4º Dto. 1050-027 Lisboa,

Ant: RE: [castor-user] [JDO] Creating O/R-mapping with the SourceGenerator

2005-11-10 Thread Stefan Lober
Thanks, this helps me a lot. I still have one follow-up question: I see that the MappingTool can only process one file at once. However, if I give it the class file that has been generated for my top-level node as input, the mappings for all nodes in the hierarchy are created. Is this intended or

RE: TR: [castor-user] Problem while unmarshalling

2005-11-10 Thread Bhatia Saurabh \(CHA\)
Hello Keith, Thanks for your inputs, I am making progress and want to improve further the way I am mapping my objects. The classes basically I have are like this: Public class TcmMdlListeEntites{ ArrayList _list; ArrayList _listeComptes; ArrayList _listePersonnes; }

[castor-user] [XML] Unmarshalling mixed content

2005-11-10 Thread Martin Resch
hi, can anybody help me to unmarshall mixed content? it may be like following: textsimple text/text or textsimple bbold/b text/text or textbbold/b text/text or ... which form has the mapping and the object type (maybe AnyNode or Element) to be? Any ideas for a solution?

Re: [castor-user] How to add comment in XML output ?

2005-11-10 Thread Keith Visco
Diogo, Yes you can use that method as well...actually if you look at the Javadoc you'll see that it states the following: * This method is basically the same as calling * #setMarshalAsDocument(false); Basically #setSupressXMLDeclaration was added long after the

Re: Ant: RE: [castor-user] [JDO] Creating O/R-mapping with the SourceGenerator

2005-11-10 Thread Keith Visco
Stefan, It is the intended effect. The MappingTool maps the given class and all its dependencies. Out of curiousity, did you also try the -gen-mapping -nodesc options from the SourceGenerator? --Keith Stefan Lober wrote: Thanks, this helps me a lot. I still have one follow-up question: I

Re: [castor-user] [XML] Unmarshalling mixed content

2005-11-10 Thread Keith Visco
Hi Martin, Castor is a bit weak when it comes to handling Mixed content. If you can use org.exolab.castor.types.AnyNode that's probably your best bet. --Keith Martin Resch wrote: hi, can anybody help me to unmarshall mixed content? it may be like following: textsimple text/text or