HRESULT QNameAttribute([in] BSTR Name, [in] BSTR Namespace, [in] BSTR value, [in] BSTR valueNamespace);
This writes a attribute to the stream, who's value is a QName, prefix's will be automatically generated for both the attribute name and the attribute value
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.QNameAttribute "Type", NS, a.authType, NS
dest.WriteText a.authKey
End Sub
This inserts x:Type='x:authType'>AuthKey into the stream, note that the serialization engine adds the containing element info, so the total results xml would be
<h:Auth x:Type='x:authType'>AuthKey</h:Auth>
Copyright © Simon Fell, 2000-2004. All rights reserved.