Hi Kalyan,
If you have a cascade mapping you can test one mapping before the other. For example you test your first mapping, take the output and test your second mapping; obviously you would need to change the OM between tests.
Probably, if you have a java mapping the output is not generating the XML header or introducing a junk character, link Eng said previously.
Regards.