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,
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
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;
}
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?
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
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
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
7 matches
Mail list logo