IKeymanObject::SerializeXML
Returns the collection items as XML. The actual XML returned will depend on the type of those items. The XML string that is returned does not contain a prolog or DTD, making it easy to concatenate to other XML strings; the format is UTF-16. If ksfExportImages is specified in Flags, then any images related to the XML (for instance, keyboard icons) will be exported to the folder specified in ImagePath, and the names of all the files exported will be added to the array referenced by References. It is the responsibility of the caller to delete all the files in the References array after finishing using them.
Declaration
Sub SerializeXML(XML As String, Flags As tagKeymanSerializeFlags, ImagePath As String, References)
Parameters
No | Name | Type | Description |
---|---|---|---|
1 | XML | String | the XML snippet returned |
2 | Flags | tagKeymanSerializeFlags | Can be 0 or ksfExportImages |
3 | ImagePath | String | Path to export image files to. If ksfExportImages is not specified, then ImagePath is ignored |
4 | References | Variant | Returns an array of image filenames, relative to ImagePage. If ksfExportImages is not specified, then References is ignored |