Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 17.0 (home page)Version 16.0 (home page, current version)Version 15.0 (home page)Version 14.0 (home page)Version 13.0 (home page)Version 12.0 (home page)Version 11.0 (home page)Version 10.0 (home page)Version 9.0 (home page)Version 8.0Version 7.0 (home page)Version 6.0 (home page)Version 5.0 (home page)Version 4.0 (home page)

Index

On this page

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
NoNameTypeDescription
1XMLStringthe XML snippet returned
2FlagstagKeymanSerializeFlagsCan be 0 or ksfExportImages
3ImagePathStringPath to export image files to. If ksfExportImages is not specified, then ImagePath is ignored
4ReferencesVariantReturns an array of image filenames, relative to ImagePage. If ksfExportImages is not specified, then References is ignored
Example Code