API Reference > ecschema-metadata > XmlSerializationUtils > XmlSerializationUtils > XmlSerializationUtils.writeStructProperty XmlSerializationUtils.writeStructProperty Function Beta Serializes an EC StructProperty instance to the EC XML format. writeStructProperty(propertyClass: StructProperty, propertyValue: any, structElement: Element, schemaDoc: Document): Promise<void> Parameter Type Description propertyClass StructProperty The Property metadata object. propertyValue any The struct object holding the property values. structElement Element The XML Element that will contain the serialized property instance. schemaDoc Document The Xml Document object holding the serialized EC Schema. Returns - Promise<void> Defined in core/ecschema-metadata/src/Deserialization/XmlSerializationUtils.ts Line 106 Last Updated: 11 June, 2024