---
Product: Aspose.Cells
Platform: cpp
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/cpp/xmlattribute
---

# XmlAttribute

## Overview

`XmlAttribute` is a class in Aspose.Cells FOSS for C++.

Lightweight handle to an XML attribute. Default-constructed instances are null.

This class declares 3 methods for XmlAttribute objects in C++ programs.
Available methods include: `GetValue`, `IsNull`, `MakeAttribute`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `IsNull()` → `bool` | Returns true if null is set. |
| `GetValue()` → `std::string` | Returns the value. |
| `MakeAttribute(value: std::string)` → `XmlAttribute` | Calls MakeAttribute(value) on this XmlAttribute instance. |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)