I need help handling a pointer that is returned from a non-COM dll. The pointer references an XML document in memory. I tried using the following:

Dim OutputXML As String = Marshal.PtrToStringAnsi(ptr)

This seemed to work well but, Copyright and Registered Trademarks are getting an extra byte (C2) added in front of them. Can someone help me out with an alterenative method or a way to read bytes from the pointer reference?