Hi Viktor,

1.  Are you sure you are using the mapping ? I mean make sure you are
not using static methods to marshal/unmarshal.

2. You should use Marshaller#addProcessingInstruction

Hope that helps,

Arnaud

-----Original Message-----
From: Viktor [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 17, 2002 12:35 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] 2 questions about marshalling/unmarshalling and
mapping

1. I need to do any changes in XML data file using Castor�so 
������� first I need to unmarshal XML source using mapping file 
������� then save it to bean 
������� and then marshal it back to the new XML file. The structure of
XML and java files �is similar to "Addressbook" example.
Everything is OK, but.... if I have any attributes in source file after
transformation theese attributes�becomes elements. How can I avoid that
problem?
�
2. The same task but another question: how to transfer stylesheet
information like: 
������� <?xml:stylesheet type="text/xsl" href="index.xsl"?> 
from the source XML to target XML using marshalling/unmarshalling.
�
WBR,� Viktor Stein

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

Reply via email to