In the event of an error, the XML fragments returns:
<?xml version='1.0' encoding='UTF-8'?><QuickLicenseManager><error>Details about the error</error></QuickLicenseManager
Return
Remarks
The return response is an XML fragment that contains details about the license. This XML fragment is digitally signed with an RSA Private Key. You can parse the XML fragment and convert it to an ILicenseInfo object by using the LicenseInfo.LoadLicenseXml method. In most cases, you will need to store this XML fragment in a file on the end-user system. It is recommended that every time you load the XML fragment from disk, you verify the digital signature by calling QlmLicense.ValidateSignature to ensure that no tampering of the data in the file was performed.
Example C#
LicenseValidator lv =newLicenseValidator();string computerID ="PCID123";string licenseFileXml =string.Empty;if (lv.QlmLicenseObject.GetLicenseFile(string.Empty,"AXDJ0T0Z00AEIX8F8ZHE3J1G8P","", computerID,out licenseFileXml)){ILicenseInfo li =newLicenseInfo(); // Parse the xml and populate the LicenseInfo objectli.LoadLicenseXml (licenseFileXml, computerID); // You can now access the data from the LicenseInfo objectDateTime maintenancePlan =li.MaintenanceRenewalDate;}
' Assuming lv is an instance of the LicenseValidator classIf lv.LicenseObject.GetLicenseFile("",lv.ActivationKey,"","", xmlFile) Then Dim li As ILicenseInfoSet li =lv.GetLicenseInfo() Call li.LoadLicenseXml(xmlFile,"")'You can now access the data from the LicenseInfo object Dim fullName asString fullName =li.FullNameEnd If