API | ITcTypeInstance Methods 5.9.1.1 ITcTypeInstance::ExportXml | ITcTypeInstance::ExportXml Serializes the current data type into an XML document with a DataTypes root element and a DataType node. In bRecursive = VARIANT_TRUE , all recursively required data types are exported as well. Signature HRESULT ExportXml(VARIANT_BOOL bRecursive, BSTR* pXML); Parameter Return value See also ImportXml 5.9.1.2 ITcTypeInstance::ImportXml | ITcTypeInstance::ImportXml Imports type information from XML. Either a single DataType element or a DataTypes container is accepted; in the latter case, the last DataType entry is used.
Signature HRESULT ImportXml(BSTR bstrXML); Parameter Return value Error codes E_FAIL : The XML could not be parsed or does not contain a valid DataType . TE1000 79 Version: 1.7.0 Method Description ExportXml Serializes the type as XML and, optionally, recursively exports dependent data types as well. ImportXml Imports the type from XML or from the most recent DataType within a DataTypes container. Name Type Description bRecursive VARIANT BOOL _ [in, defaultvalue(0)] VARIANT TRUE to recursively serialize _ dependent types. Name Type Description pXML BSTR* [out, retval] XML representation of the type. (HRESULT) HRESULT S OK if successful, otherwise an error code.
_ Name Type Description bstrXML BSTR [in] XML using DataType or DataTypes. Name Type Description (HRESULT) HRESULT S OK if successful, otherwise an error code. _