---
title: addXMLEndTag
framework: kernel
role: pseudoSymbol
path: kernel/osserialize/1808061-addxmlendtag
---

# addXMLEndTag

Appends an XML end tag to the XML stream.

## Declaration

```occ
virtual bool addXMLEndTag(
 const char *tagString); 
```

## Parameters

- `tagString`: The name of the XML tag to emit; for example, "string".

## Return Value

Return Value true if an XML end tag for tagString is successfully added to the XML stream, false otherwise.

## Overview

Overview This function emits the named tag, preceded by a slash character to indicate the closing of an entity, all enclosed within a pair of angle brackets. A call to this function must balance an earlier call to addXMLStartTag using the same tagString.

## See Also

### Miscellaneous

- [addChar](kernel/osserialize/1808034-addchar.md)
- [addString](kernel/osserialize/1808045-addstring.md)
- [addXMLStartTag](kernel/osserialize/1808073-addxmlstarttag.md)
- [clearText](kernel/osserialize/1808086-cleartext.md)
- [previouslySerialized](kernel/osserialize/1808096-previouslyserialized.md)
- [text](kernel/osserialize/1808110-text.md)
- [withCapacity](kernel/osserialize/1808120-withcapacity.md)
