Skip to content

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

License

Notifications You must be signed in to change notification settings

christophemaymard/php-xml-schema

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages