Getting topic content using vb.net and DocumentObj25.CheckOut

Hi,

I am trying to remove a reference from a topic programmatically. I am using the DocumentObj class and Checkout. The topic is returned as base 64 encoded (CDATA) as it should according to the documentation.

I try to decode it using Encoding.Unicode.Getstring and convert.FromBase64String, see below. I get an "XML" string but it is filled with vbCrLf and vbTab, making it not XML.

Is there a better way for me to do this?

Dim lsstring As String = documentClient.CheckOut("GUID-123...........", "1", "en-US", "", "", pbData)

Dim lsDecodedString As String = System.Text.Encoding.Unicode.GetString(Convert.FromBase64String(lsCDataString))

Parents Reply Children
No Data