GB/T 16263.4-2025Information technology - ASN.1 encoding rules - Part 4: XML Encoding Rules (XER) (English PDF)
This is a limited preview
Buy now to download the full PDF (83 pages)
Need quotation for your management?
Get a formal quotation for GB/T 16263.4-2025 in 30 minutes.
Issued by
State Administration for Market Regulation, China National Standardization Administration
Level / Type
National · Recommended
Issue date
May 30, 2025
Implementation date
December 1, 2025
Scope
GB/T 16263.4-2025 (Information technology - ASN.1 encoding rules - Part 4: XML Encoding Rules (XER)) is available as an English-translated PDF.
GB/T 16263.4-2025 — The basic XML encoding rules set (BASIC-XER) specified in this document can be used to derive a transfer syntax applicable to GB/T 16262.1-this document also specifies a set of regular XML encoding rules.
(CXER), provides constraints on the basic XML encoding rules and produces a unique encoding for any given ASN.1 value. The Extended XML Encoding Ruleset (EXTENDED-XER) was specified to further increase the encoder options and allow ASN.1 to describe the symbol changes the various encodings produced by BASIC-XER.
This document implicitly states that these encoding rules also apply to decoding.
The encoding rules specified in this document are. ---Used during communication; --- Intended for use in situations where the primary concern in choosing encoding rules is display using common XML tools (e.g., browsers) Display and/or process various values; --- Support extended abstract syntax by adding additional value to the various forms of scalability described in GB/T 16262.1-2025.
This document also specifies the syntax and semantics of XER coded instructions and the rules for their assignment and combination. Specifies the EXTENDEN-XER encoding of an ASN.1 type.
Found what you need?
Document preview — GB/T 16263.4-2025
National Standard of the People's Republic of China
- ICS
- 35.100.60
- Classification
- L 79
- Replacing
- GB/T 16263.4-2015
Issued by: State Administration for Market Regulation, China National Standardization Administration
Contents
- Preface
- Introduction
- 1 Scope
- 2 Normative references
- 3 Terms and Definitions
- 4 Abbreviations
- 5 Encoding
- 6 Encoding Instructions
- 7 Compliance
- 8 Basic XML encoding rules
- 9 Regular XML encoding rules
- 10 Extended XML Encoding Rules
- 11 Notation, character set, and vocabulary used in XER encoding instructions
- 12 Keywords
- 13 Assigning XER encoded instructions to ASN.1 type using type prefix
- 14 Using XER coded control area to allocate XER coded instructions
- 15 Multiple dispatch of XER-encoded instructions
- 16 Support XML namespaces and qualified names XER encoding instructions
- 17 EXTENDED-XER Encoding Specification
- 18 ANY-ATTRIBUTES encoding instruction
- 19 ANY-ELEMENT coding instruction
- 20 ATTRIBUTE encoding instruction
- 21 BASE64 encoding instructions
- 22 DECIMAL encoding instructions
- 23 DEFAULT-FOR-EMPTY coding instruction
- 24 ELEMENT coding instructions
- 25 EMBED-VALUES encoding instruction
- 26 GLOBAL-DEFAULTS encoding directive
- 27 LIST encoding instructions
- 28 NAME encoding instruction
- 29 NAMESPACE encoding instruction
- 30 PI-OR-COMMENT coded instruction
- 31 TEXT encoding instructions
- 32 UNTAGGED encoding instruction
- 33 USE-NIL encoding instructions
- 34 USE-NUMBER encoding instruction
- 35 USE-ORDER encoding instruction
- 36 USE-QNAME encoding directive
- 37 USE-TYPE encoding directive
- 38 USE-UNION encoding instructions
- 39 WHITESPACE coding instruction
- 40 Identification of Coding Rules
- Appendix A (Informative) Examples of BASIC-XER and CXER Coding
- Appendix B (Informative) Partial XML Content and Deterministic Coding
- Appendix C (Informative) Example of EXTENDED-XER encoding using XER encoding instruction
- References
Foreword
This document is in accordance with the provisions of GB/T 1.1-2020 "Guidelines for standardization work Part 1: Structure and drafting rules for standardization documents" Drafting.
This document is part 4 of GB/T 16263 "Information Technology ASN.1 Coding Rules". GB/T 16263 has published the following part.
--- Part 1: Specifications of Basic Encoding Rules (BER), Regular Encoding Rules (CER) and Untypical Encoding Rules (DER);
--- Part 2: Specification of Restricted Encoding Rules (PER);
--- Part 4: XML Encoding Rules (XER);
--- Part 5: Mapping of W3C XML Schema definitions to ASN.1.
This document replaces GB/T 16263.4-2015 "Information Technology ASN.1 Encoding Rules Part 4: XML Encoding Rules" (XER)", compared with GB/T 16263.4-2015, in addition to structural adjustments and editorial changes, the main technical changes are as follows.
a) The requirements for XML document elements have been changed (see 8.3.9, 8.3.9 of GB/T 16263.4-2015);
b) Changed the applicable types of multiple assignments of XER coded instructions in the same category (see 15.4.4, GB/T 16263.4-2015 15.4.4);
c) The encoding effect of the TEXT encoding instruction has been changed (see 31.3.4.1, 31.3.4.1 of GB/T 16263.4-2015).
This document is equivalent to ISO/IEC 8825-4:2021 "Information technology ASN.1 encoding rules Part 4: XML encoding rules (XER)".
The following minimal editorial changes were made to this document.
--- Delete the "Note" in the normative reference documents and quote the latest version of ISO/IEC 10646.The reference content does not involve technical changes.
Introduction
GB/T 16262.1-2025, GB/T 16262.2-2025, GB/T 16262.3-2025, GB/T 16262.4-2025 are used together Abstract Syntax Notation One (ASN.1) is used to describe a notation for message definitions that can be exchanged between end applications.
This document specifies the notations that can be applied using GB/T 16262.1-2025 and GB/T 16262.2-2025.
Encoding rules for values of an ASN.1 type. Applying these encoding rules produces a transfer syntax for the value. The encoding rules can also be used for decoding.
More than one set of encoding rules may apply to values of ASN.1 types. This document defines three encoding rules that use the Extensible Markup Language (XML).
These encoding rules all generate XML documents that conform to W3CXML1.0.2008.The first is called "basic XML encoding rules" (BASIC-XER). The second is called "Regular XML encoding rules" (CANONICAl-XER or CXER), because There is only one way to encode an ASN.1 value using these encoding rules. (Regular encoding rules are generally used to encode security-related features.
The third type is called "Extended XML Encoding Rules" (EXTENDED-XER).
Additional encoder options are allowed, and allow for encoding directives that specify BASIC-XER encoding variations to support XML documents (see below).
The extended XML encoding rules are not canonical, and there is no canonical form for the rules defined in this document.
XML representations of data have various features (such as using XML attributes instead of subelements, or using whitespace delimited tables), such as How to use it is a matter of style and XML designer choice. If the types defined by the ASN.1 specification are used by BASIC-XER or CXER If the XML encoding instructions specified in this document are the syntax and semantics of XML are specified in the EXTENDED-XER encoding. XER encoding instructions can also be used to determine the Possibility to insert XML processing instructions into EXTENDED-XER encoding. XER encoding instructions are replaced by BASIC-XER and CXER Ignored, but used by EXTENDED-XER.
NOTE. "Style features", such as the use of attributes or whitespace delimited tables, can also affect the size of the code and the ease with which it can be processed, so use these Features are not merely stylistic issues. When these issues are important, EXTENDED-XER with coded instructions is more suitable than BASIC-XER or CXER.
Can be the first choice.
GB/T 16263 is planned to consist of eight parts.
--- Part 1: Basic Encoding Rules (BER), Regular Encoding Rules (CER) and Untypical Encoding Rules (DER) specifications.
To specify a set of basic encoding rules.
--- Part 2: Specification of the compressed encoding rules (PER). The purpose is to specify a set of compressed encoding rules.
--- Part 3: Encoding Control Notation (ECN) Specification. The purpose is to standardize the ASN.1 Encoding Control Notation.
--- Part 4: XML Encoding Rules (XER). The purpose is to specify the Basic XML Encoding Rules (BASIC-XER), regular XML Encoding Rules Set (CXER) and Extended XML Encoding Rules Set (EXTENDED-XER).
--- Part 5: Mapping of W3C XML Schema Definitions to ASN.1.The purpose is to define the mapping from any XSD schema to ASN.1 There are two versions of the mapping mode.
--- Part 6: Registration and application of PER coded instructions. The purpose is to specify the PER coded instruction format, mechanism, registration agency Methods of operation, PER and ASN.1 related.
--- Part 7: Octet Encoding Rules (OER) Specification. The purpose is to provide constraints for the Basic Octet Encoding Rules and Generates a unique encoding for any given ASN.1 value.
--- Part 8: JavaScript Object Notation Encoding Rules (JER) specification. The purpose is to specify a set of JavaScript objects Representation encoding rules for applications that interoperate with JSON.
Information technology ASN.1 encoding rules Part 4: XML Encoding Rules (XER)
1 Scope
The basic XML encoding rules set (BASIC-XER) specified in this document can be used to derive a transfer syntax applicable to GB/T 16262.1-this document also specifies a set of regular XML encoding rules.
(CXER), provides constraints on the basic XML encoding rules and produces a unique encoding for any given ASN.1 value.
The Extended XML Encoding Ruleset (EXTENDED-XER) was specified to further increase the encoder options and allow ASN.1 to describe the symbol changes the various encodings produced by BASIC-XER. This document implicitly states that these encoding rules also apply to decoding.
The encoding rules specified in this document are.
---Used during communication;
--- Intended for use in situations where the primary concern in choosing encoding rules is display using common XML tools (e.g., browsers) Display and/or process various values;
--- Support extended abstract syntax by adding additional value to the various forms of scalability described in GB/T 16262.1-2025.
This document also specifies the syntax and semantics of XER coded instructions and the rules for their assignment and combination.
Specifies the EXTENDEN-XER encoding of an ASN.1 type.
2 Normative references
The contents of the following documents constitute the essential clauses of this document through normative references in this document.
For referenced documents without a date, only the version corresponding to that date applies to this standard; for referenced documents without a date, the latest version (including all amendments) applies to this document.
GB/T 13000-2010 Information technology Universal multi-octet coded character set (UCS) (ISO/IEC 10646:2003, IDT) GB/T 16262.1-2025 Information technology Abstract syntax notation 1 (ASN.1) Part 1: Basic notation specification (ISO/IEC 8824-1:2021, IDT) GB/T 16262.2-2025 Information technology Abstract syntax notation 1 (ASN.1) Part 2: Information object specification (ISO/IEC 8824-2:2021, IDT) GB/T 16262.3-2025 Information technology Abstract syntax notation 1 (ASN.1) Part 3: Constraint specification (ISO/IEC 8824-3:2021,IDT) GB/T 16263.1-2025 Information technology ASN.1 encoding rules Part 1: Basic encoding rules (BER), regular encoding rules Specification of Common Encoding Rules (CER) and Untypical Encoding Rules (DER) (ISO/IEC 8825-1:2021, IDT) GB/T 16263.2-2025 Information technology ASN.1 encoding rules Part 2: Specification of the Reduced Encoding Rules (PER) (ISO/IEC 8825-2:2021, IDT) ISO/IEC 10646:2020 Information technology Universal multi-octet coded character set (UCS) Note. GB/T 13000-2025 Information technology Universal coded character set (UCS) (ISO/IEC 10646:2020, MOD) ISO/IEC 24824-1:2007 Information technology - Generic applications of ASN.1 - Part 1: Fast information collection IETF RFC2045 (1996) Multipurpose Internet Mail Extensions (MIME) Part 1: Format of Internet Message Bodies
......
This preview omits tables, figures, formulas and parts of the technical clauses. The complete document — 83 pages — is available in the English PDF.
Referenced standards
Normative references
- GB/T 13000-2010Information technology - Universal coded character set(UCS)
- GB/T 16262.1-2025Information technology - Abstract Syntax Notation One(ASN.1) - Part 1: Specification of basic notation
- GB/T 16262.2-2025Information technology - Abstract Syntax Notation One (ASN.1) - Part 2: Information object specification
- GB/T 16262.3-2025Information technology - Abstract Syntax Notation One (ASN.1) - Part 3: Constraint specification
- GB/T 16263.1-2025Information technology - ASN.1 encoding rules - Part 1: Specification of Basic Encoding Rules(BER), Canonical Encoding Rules(CER) and Distinguished Encoding Rules(DER)
- GB/T 16263.2-2025Information technology - ASN.1 encoding rules - Part 2: Specification of Packed Encoding Rules (PER)
ISO/IEC 10646 · ISO/IEC 8824 · ISO/IEC 8825 · ISO/IEC 24824
Cited by
- GB/T 16263.5-2025Information technology - ASN.1 encoding rules - Part 5: Mapping W3C XML schema definitions into ASN.1
- GB/T 28826.3-2023Information technology - Common biometric exchange formats framework - Part 3: Patron format specifications
- GB/T 28826.4-2022Information technology - Common biometric exchange formats framework - Part 4: Security block format specifications
- GB/T 42132.1-2022Information technology - Machine readable test data for biometric testing and reporting - Part 1: Test reports
How to Download GB/T 16263.4-2025
- 1
Add to cart
Click "Download PDF" on this page and choose "Buy this standard". You can add more standards before checkout.
- 2
Checkout
Enter your email and billing details. Payment is processed securely by Stripe (cards or bank transfer). Prefer bank details? Request a quotation (min. order $300).
- 3
Instant delivery (0–9 sec)
Delivery is automatic: within seconds of payment you'll receive an email with a secure download link. The link stays valid for 72 hours.
- 4
Invoice included
A tax invoice is attached to the confirmation email. Need a custom invoice? Contact us.
Related Standards
GB/T 13000-2025 — Information technology - Universal coded character set(UCS)
GB/T 16262.1-2025 — Information technology - Abstract Syntax Notation One(ASN.1) - Part 1: Specification of basic notation
GB/T 16262.2-2025 — Information technology - Abstract Syntax Notation One (ASN.1) - Part 2: Information object specification
Secure payment via Stripe
Payments accepted
GB/T 16263.4-2025
$1,295.00