API Reference > ecSchema-Metadata > Metadata > Schema > toXml toXml Method Converts the schema to a DOM XML Document. toXml(schemaXml: Document): Promise<Document> Parameter Type Description schemaXml Document An empty DOM document to which the schema will be written Returns - Promise<Document> Defined in core/ecschema-metadata/src/Metadata/Schema.ts Line 506 Last Updated: 12 June, 2024