by using normal xml am able to get standalone="yes" attribute with "xml" tag. But when I am trying to get like following by using CASTOR XML am unable. answer will be appreciate. Thanks in advance.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
Castor by default generate the XML declaration as follows
In my investigation I didn't get any castor mapping configuration to generate customized XML declaration. So, we can handle it as follows,
After appending our own XML declaration to writer, we need to suppress Castor not to generate the XML declaration.