Subject: Re: [xsl] Info on serializer property|
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 29 Jan 2013 12:39:35 -0500
We are experiencing an issue with xml serializer after upgrading to WAS7 from WAS6.[IBM websphere]
We are serializing the XML file using below code which converts CARRIAGE RETURN to in WAS7 within CDATA section of an element.
Properties props = OutputPropertiesFactory.getDefaultMethodProperties("xml"); props.setProperty("omit-xml-declaration", "yes"); Serializer serializer = SerializerFactory.getSerializer(props); serializer.setWriter(writer); serializer.asDOMSerializer().serialize(doc);
<MsgTyp><![CDATA[other]]> <![CDATA[ Document]]></MsgTyp>
Can anyone please assist us on how to get this fixed?
http://www.w3.org/TR/2008/REC-xml-20081126/#sec-line-ends "To simplify the tasks of applications, the XML processor MUST behave as if it normalized all line breaks in external parsed entities (including the document entity) on input, before parsing, by translating both the two-character sequence #xD #xA and any #xD that is not followed by #xA to a single #xA character."
We are badly affected because of this.Awaiting your response
-- Contact us for world-wide XML consulting and instructor-led training Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal