Thanks Paul,
Actually those elements need to define in the Schema definition file (.xsd) for the validations so that the xml output will be restricted based on this validations from the schema file.
For e.x (Total income batch field should contain min value 1 and max value 11, The pattern values should be range between 0-9)
(Emp surname field should contain min value 1 and max value 20, The pattern values should be range between A-Za-z'\.\-]* )
So need to define the above validations in the schema definition file (.xsd)
Thanks,
ANA