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

# AL0009 - Don't call IXmlSerializable.GetSchema

> Calling GetSchema is not supported as it should always return null

Source: [AL0007ToAL0009IXmlSerializableAnalyzer.cs](https://github.com/ANcpLua/ANcpLua.Analyzers/blob/main/src/ANcpLua.Analyzers/Analyzers/AL0007ToAL0009IXmlSerializableAnalyzer.cs)

## Description

Calling GetSchema is not supported; it should always return null and isn't intended to be invoked.

## Bad Code

```csharp theme={null}
var schema = serializable.GetSchema();
```

## Good Code

Remove the call - GetSchema should never be called.

## Properties

* **Category**: Usage
* **Severity**: Error
* **Enabled by default**: True
* **Code fix available**: False

## Configuration

```editorconfig theme={null}
dotnet_diagnostic.AL0009.severity = warning
```
