# Miscellaneous

## dllversion()

`canlib.kvamemolibxml.``dllversion`()

  Get the kvaMemoLibXML DLL version number as a `VersionNumber`

## kvaBufferToXml()

`canlib.kvamemolibxml.``kvaBufferToXml`(conf_lif)

  Convert a buffer containg param.lif to XML settings.

  Scripts from the param.lif will be written to current working directory.

  Parameters: | conf_lif (string) – Buffer containing param.lif to convert.
  Returns: | xml_buf (string) – Buffer containing converted XML settings.

## kvaXmlToBuffer()

`canlib.kvamemolibxml.``kvaXmlToBuffer`(conf_xml)

  Convert XML settings to param.lif buffer.

  Parameters: | conf_xml (string) – XML settings to convert.
  Returns: | lif_buf (string) – Buffer containing converted param.lif.

## kvaXmlToFile()

`canlib.kvamemolibxml.``kvaXmlToFile`(xml_filename, binary_filename)

  Convert XML file to binary configuration file.

  Parameters: | infile (string) – Filename of file containing the XML settings. outfile (string) – Filename of binary configuration.

## kvaXmlValidate()

`canlib.kvamemolibxml.``kvaXmlValidate`(conf_xml)

  Validate a buffer with XML settings.

  Parameters: | conf_xml (string) – string containing the XML settings to validate.
  Returns: | countErr (int) – Number of XML validation errors. countWarn (int): Number of XML validation warnings.

## xmlGetLastError()

`canlib.kvamemolibxml.``xmlGetLastError`()

  Get the last error message (if any).

  Get the last error message (if any) from conversion in human redable format.

  Returns: | msg (string) – Error message associated with kvaERR. err (int): kvaMemoLibXml error code.

## xmlGetValidationError()

`canlib.kvamemolibxml.``xmlGetValidationError`()

  Get validation errors (if any).

  Call after kvaXmlValidate() until return status is KvaXmlValidationStatusOK.

  Returns: | validationStatus (int) – Validation status code. text (string): Validation status message.

## xmlGetValidationStatusCount()

`canlib.kvamemolibxml.``xmlGetValidationStatusCount`()

  Get the number of validation statuses (if any).

  Call after kvaXmlValidate().

  Returns: | countErr (int) – Number of XML validation errors. countWarn (int): Number of XML validation warnings.

## xmlGetValidationWarning()

`canlib.kvamemolibxml.``xmlGetValidationWarning`()

  Get validation warnings (if any).

  Call after kvaXmlValidate() until return status is KvaXmlValidationStatusOK.

  Returns: | validationStatus (int) – Validation status code. text (string): Validation status message.