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.
Visual Basic Class File Implements ISoapSerializer Private Const NS = "http://auth.example.org/2001/01/" 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.
Copyright © Simon Fell, 2000-2004. All rights reserved.