# HUtilityXMLGenerator

## Functions

| `HUtilityXMLGenerator`
| `~HUtilityXMLGenerator`
void | `AddTag`
void | `Reset`
void | `CloseTag`
char * | `GetBuffer`
unsigned int | `GetBufferSize`
void | `Finalize`
void | `WriteToBuffer`

## Detailed Description

class HUtilityXMLGenerator

  HUtilityXMLGenerator allows the creation of valid XML blocks.

  Public Functions

  HUtilityXMLGenerator()

    Constructs an HUtilityXMLGenerator object

  virtual ~HUtilityXMLGenerator()
  void AddTag(HUtilityXMLTag *xmltag)

    Encode XML Tag

    Parameters

      xmltag – tag object to encode

  void Reset()

    Reset XML Generator

  void CloseTag(HUtilityXMLTag *xmltag)

    Close specified tag (ends subtag processing)

    Parameters

      xmltag – tag to close

  inline char *GetBuffer()

    Returns a pointer to the buffer containing encoded XML data

  inline unsigned int GetBufferSize()

    Returns the size of XML Buffer

  void Finalize()

    Finalize encoding of XML data

  void WriteToBuffer(const char *text)