> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ValidateSchemaForManifest

> ValidateSchemaForManifest

Parses a manifest and validates the schema.

## Syntax

```cpp theme={null}
HRESULT ValidateSchemaForManifest(
         PCWSTR manifestPath,
         WCHAR** pParsingError
)
```

### Parameters

*manifestPath*   \_In\_\
Type: PCWSTR

The path to the manifest.

*pParsingError*   \_Out\_\
Type: WCHAR\*\*

On return, contains descriptions of any parsing errors.

### Return value

Type: HRESULT

Returns `S_OK` if successful. Otherwise, returns an error code. For a list of error codes, see [Error Codes](https://docs.xbox.com/reference/errorcodes.md).

## Remarks

To determine whether the manifest is a Microsoft Game Development Kit (GDK) manifest, call [GetIsGameCorePartition](https://docs.xbox.com/reference/tools/packagingservices/functions/getisgamecorepartition.md).

To validate the schema of a game configuration file, call [PackagingValidateGameConfig](https://docs.xbox.com/reference/tools/packagingservices/functions/packagingvalidategameconfig.md).

For more information about packaging, see [Overview of packaging](https://docs.xbox.com/build/core-features/common/packaging/overviews/packaging.md).

## Requirements

**Header:** packagingservices.h

**Library:** packagingservices.lib

**Supported platforms:** Windows (for XBOX console tools)

## See also

[PackagingServices](https://docs.xbox.com/reference/tools/packagingservices/packagingservices_members.md)


## Related topics

- [GetPackageVersionFromManifest](https://docs.xbox.com/reference/tools/packagingservices/functions/getpackageversionfrommanifest.md)
- [PackagingValidateGameConfig](https://docs.xbox.com/reference/tools/packagingservices/functions/packagingvalidategameconfig.md)
- [PackagingServices (API contents)](https://docs.xbox.com/reference/tools/packagingservices/packagingservices_members.md)
- [MicrosoftGame.config overview](https://docs.xbox.com/build/core-features/common/game-config/MicrosoftGameConfig-Overview.md)
- [Schemas](https://docs.xbox.com/services/playfab/data-analytics/acting-data/schemas-overview.md)
