question: @ Override protected void createStartDocumentSkeleton ( StartDocument startDoc ) { skel = new GenericSkeleton ( ) ; if ( ! params . omitXMLDeclaration ) { skel . add ( "<?xml version=\"" + doc . getXmlVersion ( ) + "\"" ) ; skel . add ( " encoding=\"" + doc . getXmlEncoding ( ) + "\"" ) ; if ( doc . getXmlStandalone ( ) ) { skel . add ( " standalone=\"yes\"" ) ; } skel . add ( "?>" + lineBreak ) ; } }
target:  Overriding to use xml encoding from the input xml document