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

# XlsxWorkbookArchiveHelpers

## Overview

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

Internal helper methods for reading XLSX workbook parts from a ZIP archive.

This class declares 21 methods for XlsxWorkbookArchiveHelpers objects in C++ programs.
Available methods include: `AddIssue`, `EnsureSeekable`, `FindRelationshipTarget`, `FindRelationshipTargetByType`, `GetEntry`, `GetRelationshipTargetKind`, `LoadDateStyleIndexes`, `LoadDocument`, `LoadRelationships`, `LoadSharedStrings`, `LooksLikeDateFormat`, `NormalizeFormula`, and 9 additional methods.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `XlsxWorkbookArchiveHelpers()` | Calls XlsxWorkbookArchiveHelpers on this XlsxWorkbookArchiveHelpers instance. |
| `EnsureSeekable(stream: std::vector<uint8_t>)` → `std::vector<uint8_t>` | Ensures the byte buffer is seekable (identity for in-memory data). |
| `GetEntry(archive: ZipArchive, uri: std::string_view)` → `ZipArchiveEntry` | Gets a ZIP entry by URI, normalizing leading slashes and backslashes. |
| `LoadDocument(entry: ZipArchiveEntry)` → `XmlDocument` | Loads an XML document from a ZIP entry. |
| `LoadRelationships(archive: ZipArchive, relationshipsUri: std::string_view, sourceUri: std::string_view)` → `std::unordered_map<std::string, std::string>` | Loads relationships from a .rels file in the archive. |
| `FindRelationshipTarget(workbookRelationships: std::unordered_map<std::string, std::string>, expectedPath: std::string_view)` → `std::string` | Finds the first relationship target whose resolved path matches expectedPath. |
| `FindRelationshipTargetByType(workbookRelationships: std::unordered_map<std::string, std::string>, relationshipType: std::string_view)` → `std::string` | Finds the first relationship target whose inferred kind matches relationshipType. |
| `LoadSharedStrings(archive: ZipArchive, workbookRelationships: std::unordered_map<std::string, std::string>, options: LoadOptions, diagnostics: LoadDiagnostics)` → `std::vector<std::string>` | Loads the shared strings table from the archive. |
| `LoadDateStyleIndexes(archive: ZipArchive, workbookRelationships: std::unordered_map<std::string, std::string>, options: LoadOptions, diagnostics: LoadDiagnostics)` → `std::unordered_set<int>` | Loads the set of cell-format indexes that use a date number format. |
| `ParseBoolAttribute(attribute: XmlAttribute)` → `bool` | Parses a boolean attribute ("1" or "true" yields true). |
| `ParseIntAttribute(attribute: XmlAttribute)` → `std::optional<int>` | Parses an integer attribute, returning empty on failure or null attribute. |
| `ParseDoubleAttribute(attribute: XmlAttribute)` → `std::optional<double>` | Parses a double attribute, returning empty on failure or null attribute. |
| `NormalizeFormula(value: std::string_view)` → `std::string` | Normalizes a formula string by trimming and stripping a leading '='. |
| `ReadInlineString(inlineStringElement: XmlElement)` → `std::string` | Reads the concatenated text from an inline-string element. |
| `TryParseNumber(rawValue: std::string_view, numberValue: CellValue)` → `bool` | Attempts to parse a raw string as a number (int or double). |
| `AddIssue(diagnostics: LoadDiagnostics, options: LoadOptions, issue: LoadIssue)` | Records a load issue and notifies the warning callback if present. |
| `ResolveWorksheetUri(sheetIndex: int, relationshipId: std::string_view, workbookRelationships: std::unordered_map<std::string, std::string>, archive: ZipArchive, diagnostics: LoadDiagnostics, sheetName: std::string_view, options: LoadOptions)` → `std::string` | Resolves the worksheet part URI from a relationship id, falling back to convention. |
| `ResolvePartUri(sourceUri: std::string_view, target: std::string_view)` → `std::string` | Resolves a relative or absolute target against a source URI. |
| `RelationshipPointsTo(candidate: std::string_view, expectedUri: std::string_view)` → `bool` | Tests whether a candidate path matches an expected URI (case-insensitive). |
| `GetRelationshipTargetKind(candidate: std::string_view)` → `std::string` | Infers the relationship type from a resolved target path. |
| `LooksLikeDateFormat(formatCode: std::string_view)` → `bool` | Tests whether a number format code looks like a date/time format. |

## See Also

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