Java xml transformer.transform adds line breaks for no reason.

related codes

String newContent = ":\r\n" + "1. \r\n" + "";
DocumentBuilder builer = null;
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
documentBuilderFactory.setIgnoringElementContentWhitespace(true);
try {
    builer = documentBuilderFactory.newDocumentBuilder();
} catch (ParserConfigurationException e) {
    e.printStackTrace();
}
Document document = builer.newDocument();
Element rootElement = document.createElement("xml");
document.appendChild(rootElement);

Element element = document.createElement("Content");
CDATASection cDATASection = document.createCDATASection(newContent); // 

element.appendChild(cDATASection);
rootElement.appendChild(element);

TransformerFactory fransformerFactory = TransformerFactory.newInstance();
Transformer transformer = null;
try {
    transformer = fransformerFactory.newTransformer();
    transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
} catch (TransformerConfigurationException e) {
    e.printStackTrace();
}

StringWriter stringWriter = new StringWriter();
try {
    transformer.transform(new DOMSource(document), new StreamResult(stringWriter));
} catch (TransformerException e) {
    e.printStackTrace();
}
String retval = stringWriter.toString();
System.out.println(retval);

what result do you expect? What is the error message actually seen?

but the output is
< xml > < Content >

  1. introduction to the Ode of Joy

Please select] < / Content > < / xml >

the result I want to use is
< xml > < Content >

  1. introduction to the Ode of Joy

Please select] < / Content > < / xml >

Jun.15,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bdc54e-31302.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bdc54e-31302.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?