Contents

addXMLStartTag

Appends an XML start tag to the XML stream.

Declaration

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

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

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