Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.02 KB

README.md

File metadata and controls

33 lines (21 loc) · 1.02 KB

PhpXmlSchema

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.