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

# XNamespace

## Overview

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

Represents an XML namespace, used to construct qualified element names.

This class declares 2 methods for XNamespace objects in C++ programs.
Available methods include: `GetUri`, `XNamespace`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.
Accessor methods: `Xml`.

## Accessor Methods

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `Xml` | `XNamespace` | Read/Write | Gets or sets the xml. |

## Methods

| Signature | Description |
|-----------|-------------|
| `XNamespace()` | Calls XNamespace on this XNamespace instance. |
| `GetUri()` → `std::string` | Returns the uri. |

## See Also

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