WriteFullEndElement (IXmlWriterLite)
Closes the named element. This method always writes the full end tag.
Syntax
HRESULT WriteFullEndElement (
const WCHAR * pwszQName,
UINT cwszQName);
Arguments
pwszQName
The qualified name of the element to close. NULL causes an error.
cwszQName
The length of the element name in wide-character units.
Return Value
Returns S_OK if no error is generated.
Remarks
Use this method when you must guarantee a full end tag. For example, you might use this method if you are writing an HTML <script>
element. In HTML, a script block must always be closed with the full end tag </script>
for browsers to correctly interpret the block.
For a complete code example that uses WriteFullEndElement
, see Universal Windows Platform (UWP) XmlLite sample.
Requirements
Header: XmlLite.h
Library: XmlLite.lib