url to download the document file. For XML format documents, the downloaded file is a signed XML certificate issued by DigiLocker.
The XML structure varies by document type. Below are sample XML responses for the most commonly fetched documents.
Aadhaar (ADHAR)
The Aadhaar XML uses aKycRes envelope structure. The UidData element contains Poi (Proof of Identity), Poa (Proof of Address), LData (local language data), and Pht (base64-encoded photo).
Key fields
The Aadhaar XML structure differs from PAN and Driving License — it uses a
KycRes envelope instead of the standard DigiLocker Certificate wrapper with IssuedBy / IssuedTo sections.PAN (PANCR)
The PAN XML follows the standard DigiLockerCertificate structure with IssuedBy, IssuedTo, and CertificateData sections.
Key fields
Driving License (DRVLC)
The Driving License XML includes license validity, vehicle categories, and both present and permanent addresses.Key fields
Digital signature verification
All XML responses are digitally signed by Digital India Corporation using an enveloped XML signature (xmldsig#). Each document includes:
- A
<Signature>block with the signed digest and signature value - An
<X509Certificate>containing the signer’s public certificate
<Signature> block against the X.509 certificate embedded in the XML.