alcamo/xml

XML syntax and expanded names

Installs: 1

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/alcamo/xml

0.1.0 2025-10-06 16:33 UTC

This package is auto-updated.

Last update: 2025-10-06 16:35:33 UTC


README

Constants for (fragments of) regular expressions corresponding to syntax productions in the XML specifications.

Class XName

Implementation of the concept of an expanded name in XML with namespaces.

The constructor simply takes a namespace name and a local name as input. For the sake of performance, the syntactic correctness of the parameters is not checked.

Static factory methods are provided to create expanded names, among others from a qualified names.

A __toString() method is provided to create strings from XNames, which are useful, among others, to use XNames as array indices.

Interface HavingXNameInterface

Simple interface for objects (such as XML Schema items) that have an expanded name.