---
name: "gnat2xml"
section: "1"
platform: "linux"
package: "asis-programs"
version: "2019-5"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/gnat2xml"
---

# gnat2xml(1)

produces an XML representation of Ada sources

## NAME

gnat2xml - produces an XML representation of Ada sources

## SYNOPSIS

**gnat2xml** \[**options**\] **-P**\[*project*\]

## DESCRIPTION

The XML schemas respected by the output can be found in */usr/share/doc/asis-doc/ada-schema.compact.xsd* and *ada-schema.xsd* if the **asis-doc** package is installed.

The reference documentation about **gnat2xml**, the GNAT User Guide, can unfortunately not be distributed by Debian due to license problems, but may be found in various formats at *https://gcc.gnu.org/onlinedocs/*. The **--help** option will list accepted options.

## SEE ALSO

[gnat(1)](/gnat/1.md), [asistant(1)](/asistant/1.md), [gnatcheck(1)](/gnatcheck/1.md), [gnatelim(1)](/gnatelim/1.md), [gnatmetric(1)](/gnatmetric/1.md), [gnatpp(1)](/gnatpp/1.md), [gnatstub(1)](/gnatstub/1.md), [gnattest(1)](/gnattest/1.md)
