Regular Language for XML Next Generation (RELAX NG)

Definition - What does Regular Language for XML Next Generation (RELAX NG) mean?

Regular Language for XML Next Generation (RELAX NG) is a schema language for eXtensible Markup Language (XML). RELAX NG is used to validate XML instance documents. It was authored by Makoto Murata and James Clark with the design based on Clark’s Tree Regular Expression for XML (TREX) and Murata’s Regular Language description for XML (RELAX).

One of the feature of RELAX NG is that a single RELAX NG schema document can validate many XML instance documents. (Or a single XML instance document can be validated by multiple RELAX NG schema documents.)

Other features of RELAX NG include:

  • it is a pattern-based grammar based on a strong mathematical foundation,
  • it has XML syntax and compact syntax,
  • it supports XML schema datatypes,
  • it supports user-defined Schema datatypes,
  • it supports XML namespaces,
  • it is highly composable,
  • it deals with elements and attributes the same way.

RELEAX NG has two different syntaxes, the XML syntax and compact syntax. Filename extensions of RELAX NG are “.rng” and “.rnc” for a regular syntax and compact syntax respectively.

Techopedia explains Regular Language for XML Next Generation (RELAX NG)

The acronym makes sense when you see it written as: REgular LAnguage for XML Next Generation.

The authors, Clark and Murata have created RELAX NG after Document Type Definition (DTD) and XML schema languages and have addressed several problems experienced with DTDs and XML schema languages.

RELAX NG's approach to validation is based on patterns -- it uses pattern composition and named patterns to create resusable sections in schema documents.

RELAX NG does not have the type hierarchy of XML schemas and does not support type inheritance but it does support datatyping with datatypes provided by the W3C XML schema as well as user-defined types.

Although RELEAX NG is the most simple validation technology, support is not as widely available as compared to W3C XML schema.

Share this:

Connect with us

Email Newsletter

Join thousands of others with our weekly newsletter

The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.