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
Requires
- php: 7.3 - 8.0
- alcamo/exception: ^0.1
Requires (Dev)
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: 3.*
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 XName
s,
which are useful, among others, to use XName
s as array indices.
Interface HavingXNameInterface
Simple interface for objects (such as XML Schema items) that have an expanded name.