Relax NG Schema Quick Reference
These elements are part of the Relax NG standard which is a schema language for XML. It provides a way to define the structure, content, and constraints for XML documents. Relax NG is designed to be simple, flexible, and extensible. It uses a concise and expressive syntax, which makes it easy to write and understand Relax NG schemas. Relax NG schemas are typically used to validate XML documents, ensuring that they conform to a specific set of rules. This can help to ensure the quality and consistency of XML-based data.
- rng:anyName matches any XML element with any name.
- rng:attribute specifies the constraints on an attribute of an XML element.
- rng:choice allows a choice of one or more elements or attribute groups to be used in a schema.
- rng:data specifies a simple type for the content of an XML element or attribute.
- rng:element specifies the constraints on an XML element.
- rng:empty specifies that an XML element must be empty (i.e., must not have any content).
- rng:externalRef references a schema defined in an external file.
- rng:grammar is the root element of a Relax NG schema. It contains the elements and attributes that define the constraints for an XML document.
- rng:group groups a set of elements or attribute groups together.
- rng:interleave specifies that the child elements of an XML element must appear in any order.
- rng:list specifies that the content of an XML element must be a whitespace-separated list of values of a simple type.
- rng:mixed specifies that the content of an XML element can contain both text and child elements.
- rng:name is an attribute that specifies the name of an XML element or attribute.
- rng:notAllowed specifies that an XML element or attribute is not allowed.
- rng:nsName matches any XML element with a specific namespace and name.
- rng:oneOrMore specifies that an XML element must appear one or more times.
- rng:optional specifies that an XML element is optional (i.e., it may or may not appear in the XML document).
- rng:parentRef references an element or attribute group defined elsewhere in the schema.
- rng:ref references an element or attribute group defined elsewhere in the schema.
- rng:text specifies that the content of an XML element must be plain text (i.e., it must not contain any child elements).
- rng:value is an attribute that specifies a fixed value for an XML element or attribute.
- rng:zeroOrMore specifies that an XML element may appear zero or more times.