ISerializerOutput::WriteText Method

HRESULT WriteText([in] BSTR text);

This writes out text as an element value. It is assumed that the source text is not XML aware, and so has XML encoding rules applied to it.



BSTR, [in]: The text to serialize


Return Values


Sample Code

Visual Basic Class File

Implements ISoapSerializer

Private Const NS = ""

Private Sub ISoapSerializer_Serialize(  Val As Variant, _
                                        ByVal ctx As PocketSOAP.ISerializerContext, _
                                        ByVal dest As PocketSOAP.ISerializerOutput)
    Dim a As AuthInfo
    Set a = Val
    dest.WriteText a.Username
End Sub

if a.Username returns "Simon&Simon", then Simon&Simon will be written to the stream.


See Also

The ISerializerOutput Interface | 




Copyright © Simon Fell, 2000-2004. All rights reserved.