I developed custom send pipeline component to add “xmldata=” at front of XML. Why do I get “?” between the string that I added and xml? I am getting the out put xml as xmldata=?<PORoot><POHeader>…….
What could be reason to get “?” and how can I remove that?
Are you trying to add an attribute to the document declaration type for your XML data (<?xml version=”1.0″?>)? To my knowledge, xmldata is not a valid attribute. What are you trying to do?
Not always, but it is recognisable pattern, see: http://en.wikipedia.org/wiki/Byte_order_mark You need to read the first few bytes of the stream to determine if there is a BOM and then you can ascertain the encoding used. No BOM usually indicates an ANSI encoding.