![]() |
Functions | |
| KvaXmlStatus | kvaXmlValidate (const char *xmlbuf, unsigned int xmllen) |
| KvaXmlStatus | kvaXmlGetValidationStatusCount (int *countErr, int *countWarn) |
| KvaXmlStatus | kvaXmlGetValidationError (KvaXmlValidationStatus *status, char *buf, unsigned int len) |
| KvaXmlStatus | kvaXmlGetValidationWarning (KvaXmlValidationStatus *status, char *buf, unsigned int len) |
| KvaXmlStatus | kvaXmlGetValidationText (KvaXmlValidationStatus status, char *buf, unsigned int len) |
| unsigned short | kvaXmlGetVersion (void) |
| KvaXmlStatus kvaXmlGetValidationError | ( | KvaXmlValidationStatus * | status, |
| char * | buf, | ||
| unsigned int | len | ||
| ) |
Get the validation errors (if any). Call after kvaXmlValidate() until KvaXmlValidationStatusOK
| [out] | status | Validation status code. |
| [out] | buf | Buffer containing the validation error message. |
| [out] | len | Size of the validation message buffer in bytes. |
| KvaXmlStatus kvaXmlGetValidationStatusCount | ( | int * | countErr, |
| int * | countWarn | ||
| ) |
Get the number of validation statuses (if any). Call after kvaXmlValidate()
| [out] | countErr | Number of XML validation errors. |
| [out] | countWarn | Number of XML validation warnings. |
| KvaXmlStatus kvaXmlGetValidationText | ( | KvaXmlValidationStatus | status, |
| char * | buf, | ||
| unsigned int | len | ||
| ) |
Get a human readable description of validation error with supplied error code.
| [in] | status | KvaXmlValidationStatus error code. |
| [out] | buf | Buffer to receive error message. |
| [in] | len | Buffer size in bytes. |
| KvaXmlStatus kvaXmlGetValidationWarning | ( | KvaXmlValidationStatus * | status, |
| char * | buf, | ||
| unsigned int | len | ||
| ) |
Get the validation warnings (if any). Call after kvaXmlValidate() until KvaXmlValidationStatusOK
| [out] | status | Valdiation status code. |
| [out] | buf | Buffer containing the validation warning message. |
| [out] | len | Size of the validation message buffer in bytes. |
| unsigned short kvaXmlGetVersion | ( | void | ) |
Return the version of the kvaMemoLibXML DLL. The most significant byte is the major version number and the least significant byte is the minor version number.
| KvaXmlStatus kvaXmlValidate | ( | const char * | xmlbuf, |
| unsigned int | xmllen | ||
| ) |
Validate a buffer with XML settings
| [in] | xmlbuf | Buffer containing the XML settings. |
| [in] | xmllen | Size of the XML buffer in bytes. |