CXmlWriterLite.WriteElementStringmethod
Writes out an element with the specified prefix, name, namespace, and value.
Syntax
FUNCTION WriteElementString (BYVAL pwszQName AS WSTRING PTR, BYVAL pwszValue AS LPCWSTR) AS HRESULT
Parameters
| Name | Description | |
|---|---|---|
pwszQName | The qualified name of the element. NULL causes an error. | |
pwszValue | The value of the element. NULL indicates that there is no content to write. In contrast, an empty string indicates that this element has an empty value. |
Return value
Returns S_OK if no error is generated.
Description
Writes out an element by using the specified prefix, name, namespace, and value.
Example
pWriter->WriteElementString("myElement", "myValue")
Reference
- Defined in AfxNova/CXmlLite.inc:1371
- Documented in File Management/CXmlLite Class.md
- Topic: CXmlLite Class