Вот мой вывод: <?xml version="1.0" encoding="UTF-8"?><first> <!--it's a comment--> <second>some string</second> <!--it's a comment--> <second><![CDATA[need CDATA because of &]]></second> <!--it's a comment--> <second><![CDATA[&&&]]></second> <forth> <!--it's a comment--> <second>some string</second> <!--it's a comment--> <second><![CDATA[need CDATA because of <second>]]></second> </forth> <fifth><![CDATA[need CDATA because of "]]></fifth> </first> <?xml version="1.0" encoding="UTF-8"?><!--it's a comment--><second> <!--it's a comment--> <second>some string</second> <!--it's a comment--> <second><![CDATA[need CDATA because of <second>]]></second> </second> Что я делаю не так? И как это не так исправить?