Hi Siva, as far as I remember discussions on the mailing list, CDATA sections should be possible. Please search the list yourself on how to do it. I think the following howto will point you in the right direction:
http://castor.codehaus.org/how-to-unmarshal-raw-xml.html As Castor marshaller uses XML serialiser and do not generate an object tree there is no way to extract XML as string. The time needed for marshalling mainly depends on the object tree you want to marshal. I'd also suggest you to search mailing list on how to improve marshalling performance. Maybe caching of Class-/FieldDescriptors is an option here. Regards Ralf Sivalenka, Siva X schrieb: > >> -----Original Message----- >>From: Sivalenka, Siva X >>Sent: Monday, April 17, 2006 8:58 AM >>To: '[EMAIL PROTECTED]' >>Cc: '[EMAIL PROTECTED]' >>Subject: RE: Clarification >> >> -----Original Message----- >>From: Sivalenka, Siva X >>Sent: Monday, April 17, 2006 8:43 AM >>To: '[EMAIL PROTECTED]' >>Subject: Clarification >> >>Hi, >> >>Please let me know whether Castor supports CDATA. >> >>Please do let me know if there is any API to extract the String object from >>the XML file created by marshal / Or can we extract a String directly from >>the Java tree generated via marshaling . >> >>When I am trying to "Marshal" a populated castor generated java object into a >>XML file with a FileWriter, it's taking around 890 Milliseconds. Why is it >>so, is there any better way to accomplish the same within less amount of >>time. I even tried extracting an XML String passing StringWriter object as >>the parameter(our requirement is to generate a validated XML string object. >>It also took around 820 Milliseconds. >> >>Please help me in this regard, if you have any suggestions or workaround. >> >> >>Thanks, >>Siva Sivalenka >> > > > ============================================================================== > The contents of this message, together with any attachments, are intended > only for the use of the person(s) to which they are addressed and may contain > confidential and/or privileged information. Further, any medical information > herein is confidential and protected by law. It is unlawful for unauthorized > persons to use, review, copy, disclose, or disseminate confidential medical > information. If you are not the intended recipient, immediately advise the > sender and delete this message and any attachments. Any distribution, or > copying of this message, or any attachment, is prohibited. > ============================================================================== > > > ------------------------------------------------- > If you wish to unsubscribe from this list, please > send an empty message to the following address: > > [EMAIL PROTECTED] > ------------------------------------------------- ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

