XML Data structure
The data specified inside the Update document command must follow a structure.
Every entity must refers to an existing entity existing inside the SamLight editor.
There are 3 kinds of format:
Sample:
This sample containing 2 layouts: "data" and "mrz".
The data contains 1 barcode 2 images and 7 strings.
The mrz contains 1 image and 5 strings.
<entity Name="Surname" Text="John" />
<entity Name="GivenName" Text="Doe" />
<entity Name="SEX" Text="M" />
<entity Name="NAT" Text="USA" />
<entity Name="DOB" Text="01/01/1978" />
<entity Name="NUMBER" Text="123456" />
<entity Name="DOE" Text="24/11/12" />
<entity Name="PERNO" Text="98524" />
<entity Name="POB" Text="New York" />
<entity Name="DOI" Text="11/08/11" />
<entity Name="ISSUE" Text="IXLA" />
<entity Name="HEIGHT" Text="180" />
<entity Name="Number" Code="0123456789" />
<entity Name="Img1" Image="[CODE64]" />
<entity Name="Img2" Image="[CODE64]" />
<entity Name="Img3" Image="[CODE64]" />
Syntax:
<entity Name="[String]" Text="[String]" />
Parameters:
Name |
Mandatory |
Description |
Format |
Name |
Yes |
Entity name must be update |
String |
Text |
Yes |
Text to update |
String |
<entity Name="[String]" Code="[String]" />
Parameters:
Name |
Mandatory |
Description |
Format |
Name |
Yes |
Entity name must be update |
String |
Code |
Yes |
Code to update |
String |
<entity Name="[String]" Image="[String]" />
Parameters:
Name |
Mandatory |
Description |
Format |
Name |
Yes |
Entity name must be update |
String |
Image |
Yes |
Code64 of image to update |
String |