SECXMLArchive::Write
Creates a new element with the specified tagname and stores the value as a child Text Element of the new element. The new element is made the child of the current parent Element.
Defined in: xmlarch.h
Syntax
Write(LPCTSTR tagName, BYTE by)Write(LPCTSTR tagName, WORD w)
Write(LPCTSTR tagName, LONG l)
Write(LPCTSTR tagName, DWORD dw)
Write(LPCTSTR tagName, float f)
Write(LPCTSTR tagName, double d)
Write(LPCTSTR tagName, int i)
Write(LPCTSTR tagName, short w)
Write(LPCTSTR tagName, unsigned u)
Write(LPCTSTR tagName, LPCTSTR str, long type = 3/*NODE_TEXT*/)
Write(LPCTSTR tagName, const void* lpBuf, UINT nMax, int encodeType = SEC_BASE64)
Write(LPCTSTR contextTagName, IXMLSerialize* pFormatter)
Return Value
A reference to itself.
Parameters
tagName
Specifies the tag name of the element to be created.
by
The byte value to be stored.
w
The WORD value to be stored.
l
The LONG value to be stored.
dw
The DWORD value to be stored.
f
The float value to be stored.
db
The double value to be stored.
n
The int value to be stored.
sh
The short value to be stored.
ui
The unsigned value to be stored.
str
The string value to be stored.
lpBuf
The buffer containing the binary stream to be stored.
nMax
Specifies the size of the buffer.
pFormatter
A reference to a formatter which has XMLSerialize overriden and whose elements are stored as children of the newly created element.
type
Type specifies whether to store it as string value (NODE_TEXT) the default or NODE_CDATA_SECTION
encodeType
The encode type to be used - base64 or quoted printable
See Also