exportSchemaXmlString Method @beta

Serializes the specified ECSchema to an XML string.

exportSchemaXmlString(schemaName: string, ecSpecVersion?: ECSpecVersion): undefined | string

@returns The schema XML string, or undefined if the schema was not found or serialization failed.

Parameter Type Description
schemaName string The name of the schema to serialize.
ecSpecVersion ECSpecVersion The ECXml specification version to use for the output XML.

Returns - undefined | string

The schema XML string, or undefined if the schema was not found or serialization failed.

Defined in

Last Updated: 25 April, 2026