FileConverter is like:

public class FileConverter {

        public FileConverter() { }

        public String convertToXMLData(String fileName) throws
                FileNotFoundException, IOException {

                BufferedReader br;
                br = new BufferedReader(new FileReader(fileName));
                int c;
                StringBuilder response= new StringBuilder();

                while ((c = br.read()) != -1) {
                        response.append( (char)c ) ;
                }

                String xmlData = response.toString();
                //xmlData = xmlData.replace("\n", "").replace("\r",
"").replaceAll("[\\r\\n]+", "");

                br.close();
                return xmlData;
        }
}

If I uncomment 

//xmlData = xmlData.replace("\n", "").replace("\r",
"").replaceAll("[\\r\\n]+", "");

works fine but breaks the XML signature (changes the signed XML)



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Include-signed-XML-into-a-single-CDATA-tp5772863p5772889.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to