Issue while submitting XML document to TN

Im using the Wm 9.5.

Im not sure if there is any configuration mistake or anything but im clueless as to why it wouldn’t recognise !

Now im just reading the file as string with utf-8 encoding then converting the xml string to xml node and then routing the xml node to TN and also at the same time invoking tn:receive service with content type set as text/xml;

The route to xml fails to recognize the document it is going for unknown PR but the second http call is processing the xml file correctly.

During wm.tn.doc.xml:routeXml this service call this is the error i have got in the logs.

[101]2015-11-09 11:36:11 UTC [TNS.0001.2088I] A corrupted document was encountered in recognition: There was an error in trying to get XML header information (DOCTYPE and DTD). The document (5ec14k00a3m0gcri000003mq) is probably not valid XML.
[100]
[99]2015-11-09 11:36:11 UTC [ISU.0000.9999E] com.wm.app.tn.doc.CorruptXMLException: There was an error in trying to get XML header information (DOCTYPE and DTD). The document (5ec14k00a3m0gcri000003mq) is probably not valid XML.

i have attached the snap shot of the code.

snap.jpg