Writes a character entity for the provided Unicode character value. This method writes the character entity in hexadecimal format.

HRESULT WriteCharEntity (WCHAR character);  

The character to write.

Returns S_OK if no error is generated.

This method does not accept surrogate pairs. To write a surrogate pair, see WriteSurrogateCharEntity.

For an example of the WriteCharEntity method, see Write an XML Document using XmlLite.

Header: XmlLite.h

Library: XmlLite.lib

IXmlWriter Methods