PHP code example of stormcode / xsd-reader-laravel-cached
1. Go to this page and download the library: Download stormcode/xsd-reader-laravel-cached library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
stormcode / xsd-reader-laravel-cached example snippets
use CollectHouse\XML\XSDReader\SchemaReader;
$reader = new SchemaReader();
$schema = $reader->readFile("http://www.example.com/exaple.xsd");
// $schema is instance of CollectHouse\XML\XSDReader\Schema\Schema;
// Now you can navigate the entire schema structure
foreach ($schema->getSchemas() as $innerSchema){
}
foreach ($schema->getTypes() as $type){
}
foreach ($schema->getElements() as $element){
}
foreach ($schema->getGroups() as $group){
}
foreach ($schema->getAttributes() as $attr){
}
foreach ($schema->getAttributeGroups() as $attrGroup){
}