Sign up to request clarification or add additional context in comments.
Comments
0
It did exactly what you wanted. The stored data represents the String "<![CDATA[test]]>"!
If you use a API to create XML, just don't care for the way the XML is generated, since any parser will be able to parse it correctly. Just store the String "test" and be happy :).