readSchemaFromXmlFile Method

Deserialize a Schema from an ECSchemaXML-formatted file.

readSchemaFromXmlFile(filePath: string): any

@returns The JSON representation of the schema, as a SchemaProps.

@throws IModelError if there is a problem reading schema from the XML file

Parameter Type Description
filePath string The absolute path of the XML file.

Returns - any

The JSON representation of the schema, as a SchemaProps.

Defined in

Last Updated: 14 November, 2024