> For the complete documentation index, see [llms.txt](https://cenprot.gitbook.io/manual-cenprot-nacional/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cenprot.gitbook.io/manual-cenprot-nacional/perguntas-frequentes/o-que-e-um-arquivo-xsd.md).

# O que é um arquivo XSD?

Arquivos XSD (XML Schema Definition) são especificação de usadas para descrever o “formato/padrão” que um arquivo XML deve seguir, ou seja, ele tem que indicar quais nodes (\<node1>\<subnode1>\</subnode1>\</node1>) ele pode conter, quais subnodes e atributos esses nodes podem ter, e muito mais.

Indica o tipo dos valores que esses nodes e atributos (\<node1 atributo1="’abc’/">) podem armazenar, o tamanho dos dados caso se aplique (string de 10 caracteres), se um determinado node é obrigatório ou não (nillable=”true”), quais possíveis valores uma enumeração pode assumir, etc…\</node1>

Enfim, define toda a estrutura do arquivo XML ao qual ele é aplicado. Ele é muito utilizado como base de validação, para garantir que um XML está seguindo o padrão/formato correto.

{% hint style="info" %}
Um arquivo XSD é uma especificação de estrutura de arquivo XML, portanto um "XML Schema".
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cenprot.gitbook.io/manual-cenprot-nacional/perguntas-frequentes/o-que-e-um-arquivo-xsd.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
