I am using castor to generate output XML from a object list. The output XML contains line feeds with just "\n" instead of "\r\n" as I am running on Windows. Also, castor uses the xerces seralizer to write out the xml Can someone tell me is there is any property I can set to tell xerces to output linefeeds using the line.separator system property instead of a hard coded "\n" which is what I think it is using by default.
Anand,
You might want to post this to the Castor list as well. This kind of depends on *which" Xerces serializer Castor uses. If it's using the "XMLSerializer" class, an "OutputFormat" class can be used to determine this kind of output characteristic. You would have to create an appropriate OutputFormat class then set the serializer to use it using the setOutputFormat method, assuming you can/want to get to and modify the Castor code.
Mike
--------------------------------------------------------------- Michael C. Rawlins, Rawlins EC Consulting www.rawlinsecconsulting.com Using XML with Legacy Business Applications (Addison-Wesley, 2003) www.awprofessional.com/titles/0321154940
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
