Hi Guys i am trying to insert xml file in database but i am getting this error text/xmldecl not at the beginning of input.Can anyone tell me how to fix this.

The error probably means your xml file is missing some required declaration at the begining.
Can you show some code and the xml file.