cmaymard/php-xml-schema

Provides support to parse and create an in-memory representation of a XML Schema document.

dev-master 2020-04-19 12:00 UTC

This package is auto-updated.

Last update: 2024-04-19 20:29:51 UTC


README

Latest Release PHP Version PHP Extensions License

Provides support to parse and create an in-memory representation of a XML Schema document.

Installation

composer require cmaymard/php-xml-schema

Usage

Parse a XML Schema 1.0 document

<?php

use PhpXmlSchema\Dom\Parser;

$src = \file_get_contents('schema.xsd');

$parser = new Parser();

// $schema is an instance of PhpXmlSchema\Dom\SchemaElement.
$schema = $parser->parse($src);

See the documentation.