---
title: addXMLStartTag
framework: kernel
role: pseudoSymbol
path: kernel/osserialize/1808073-addxmlstarttag
---

# addXMLStartTag

Appends an XML start tag to the XML stream.

## Declaration

```occ
virtual bool addXMLStartTag( 
 const OSMetaClassBase *object, 
 const char *tagString); 
```

## Parameters

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

## Return Value

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

## Overview

Overview This function emits the named tag, enclosed within a pair of angle brackets. A class that implements serialization should call this function with the name of the XML tag that best represents the serialized contents of the object. A limited number of tags are supported by the user-space I/O Kit library: array dict integer key set string A call to this function must be balanced with one to addXMLEndTag using the same tagString.

## See Also

### Miscellaneous

- [addChar](kernel/osserialize/1808034-addchar.md)
- [addString](kernel/osserialize/1808045-addstring.md)
- [addXMLEndTag](kernel/osserialize/1808061-addxmlendtag.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)
