Department of Justice

hkel_list_xml-dictionary_en.pdf

官方 PDF

Department of Justice

List of Hong Kong Legislation Data Dictionary for Extensible Markup Language (XML)

Version: 1.0

October 2019

© The Government of the Hong Kong Special Administrative Region

The contents of this document remain the property of, and may not be reproduced in whole or in part without

the express permission of the Government of the Hong Kong Special Administrative Region.


List of Hong Kong Legislation Extensible Markup Language (XML) Introduction

1. Introduction

List of Hong Kong Legislation lists out current and past (dating back to 30 June 1997) versions of Hong Kong Legislation.

1.1. About Data Resource of List of Hong Kong Legislation

Resource format: XML
Resource encoding: Universal Transformation Format-8 (UTF-8)
File name: hkel_list_[c|p]all[en|zh-Hant|zh-Hans].xml
Notation Description
[c|p] "c": current version. "p": past version (dating back to 30 June 1997).
[en|zh-Hant|zh-Hans ] "en": English version. "zh-Hant": Traditional Chinese version. "zh-Hans": Simplified Chinese version.

List of Hong Kong Legislation Extensible Markup Language (XML) Data Dictionary

2. Data Dictionary

Element Name Element Description Remark
Listing Listing of all chapters. Attribute "UpdateDateTime": date and time when the list was generated. Attribute "lang": "en" for English, "zh-Hant" for Traditional Chinese, "zh-Hans" for Simplified Chinese. Attribute "pointOfTime": "c" for current version, "p" for past version. Attribute "legislationType": "ORD" - Ordinance only. "SUBLEG" - Subsidiary Legislation only. "INSTRUMENTS" - Instruments only. "LEG" - Ordinance and Subsidiary Legislation only. "ALL" - Ordinance, Subsidiary Legislation and Instruments. Attribute "UpdateDateTime" is in ISO 8601 format written as: YYYY-MM- DDThh:mm:ss±hh:mm
DataSet A set of DataResource.
DataResource Attribute "orderNo": ordering of the DataResource item. Attribute "url": URL to download the legislation data file. Attribute "LegislationType": "ORD" - Ordinance only. "SUBLEG" - Subsidiary Legislation only. "INSTRUMENTS" - Instruments only. "LEG" - Ordinance and Subsidiary Legislation only. "ALL" - Ordinance, Subsidiary Legislation and Instruments. Attribute "capNoStart": first chapter no. included in this DataResource.

Attribute "capNoEnd": last chapter no. included in this DataResource. Attribute "fileDate": file update date of this file. Attribute "fileSize": size of this file. Attribute "sha256": SHA256 hash of this file.

Chapter A chapter.
CapNo Chapter Number, Cap. No. for short.
CapNoDisplay Cap. No. for display. Display English / Traditional Chinese / Simplified Chinese version.
ChapterTitle Chapter Title. Display English / Traditional Chinese / Simplified Chinese version.
LegislationType Legislation Type:
Code Description
O Ordinance
S Subsidiary Legislation
I Instrument

PrincipalOrdinance Principal Ordinance.

Display Cap. No. when Legislation Type is "O" or "I". Display Principal Ordinance No. when Legislation Type is "S". SubLegislation Subsidiary Legislation No.

Empty when Legislation Type is not "S". When Legislation Type is "S", value is the Cap. No. suffix. Attribute "orderNo": display numeric order no. of the Subsidiary Legislation under its Principal Ordinance; Display "0" when Legislation Type is "O" or "I". Version A version of the chapter.


VersionDate Version Date. Version Date is in ISO

8601 format written as: Attribute "isCurrentVersion": when attribute is set to true, it is current version of the legislation. YYYY-MM-

DDThh:mm:ss±hh:mm Attribute "isPencilMarked": when attribute is set to true, there is pencil mark added: (1) to the chapter; or (2) to existing provision; or (3) to new provision of the version If the version date has no of the legislation. time component, it is

considered that the time Attribute "statusCategory": Legislation Status Category: component is 00:00:00.

Code Description
InEffect In effect
NotYetInEffect Not yet in effect
NoLongerInEffect No Longer in effect

Attribute "statusCode": Legislation status code of the legislation version:

Code Description
1 In effect
3 Partially in operation
4 Partially suspended
5 Suspended
6 Not yet in operation
7 Cancelled
8 Ceased to be in force
9 Ceased to have effect
10 Expired
11 Had its effect
12 Not adopted as the Laws of the HKSAR
13 Omitted
14 Omitted as expired
15 Omitted as spent

16 Omitted as withdrawn 17 Repealed 18 Repealed but retained 19 Replaced 20 Rescinded 21 Revoked 22 Spent 23 Proposed 27 Superseded 28 Other 29 Rearranged 30 Ceased to apply 100 Withdrawn 101 Amendments Incorporated

DataResourceURL Access URL of data resource.
FileLocation Folder name. Attribute "hasImage" is set to true if sub-folder "images" exists in the folder.
FileName File name.
Web URL that points to the HKeL web page of that chapter version and language.
相關資料集
其他格式

Markdown · 詮釋資料 JSON

擷取文字;版面及圖表請參閱官方 PDF。

來源及使用條款

Publisher listed by DATA.GOV.HK: Department of Justice. Follow the original source PDF linked on this record.

Obtain specific written permission for public hosting or establish a document-specific licence that permits it.

For each proposed PDF, bind the exact source and publisher authorship to the notice; check its own credits, third-party content, logos, images and specific exclusions.

Publisher-independent publication is the user's editorial instruction. Recorded publisher classifications do not determine selection. It does not establish per-document legal clearance or a publisher permission grant.

Only the material covered by this notice; a separately licensed dataset or document can have different terms.

Official source PDF remains authoritative. Automatic extraction can omit or misformat content.

Recorded official notice: https://www.doj.gov.hk/en/notices/index.html

Publisher listed by DATA.GOV.HK and original source PDF are identified on this copy. Publisher listing does not establish authorship.

Rights in the original source material remain with its rights holders. Editorial selection does not establish a publisher permission grant or per-document legal clearance. Consult the original PDF and recorded terms.

This is a Markdown text conversion with formatting changes. The official source PDF remains authoritative. No provider endorsement is claimed.

This copy supports noncommercial educational reference to help readers understand and use upstream schemas and APIs. This project purpose does not restrict rights granted by the provider licence.

Reuse evidence