Use class encoding attribute to call xml declaration.