I don't know about your other problems (I too would like to know how to preserve comments), and I just use plain Castor not the JD extension, but as for #1, how we make sure an attribute gets written out as an attribute is we use the AnyNode.ATTRIBUTE constant as the "type" param to the AnyNode argument. Your code may vary.


Narsis wrote:
Hi.
Happy new Year.
Excuse me for being late in reply!
I wrote the needed classes by myself, so the big problem got solved, but i got some
little problems !!!
1 :
Some of the attributes in original xml file are written inline with the tag like:
<property name="name1">
but in marshaled xml, they are written as follows :
<property><name>name1</name></property>
How can i change this output, so that it looks like the original? (I used the
mapping file, but it needs that all of the properties be written in the mapping file,
not just some of them.



----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user

Reply via email to