https://github.com/yurisizov/xsdvis
XML Schema Description (XSD) visualization tool, written in PHP
https://github.com/yurisizov/xsdvis
xsd
Last synced: 7 months ago
JSON representation
XML Schema Description (XSD) visualization tool, written in PHP
- Host: GitHub
- URL: https://github.com/yurisizov/xsdvis
- Owner: YuriSizov
- License: other
- Created: 2015-05-12T10:41:45.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-12T20:29:28.000Z (over 10 years ago)
- Last Synced: 2025-01-24T21:31:53.380Z (9 months ago)
- Topics: xsd
- Language: PHP
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# XSD Visualization Library
If you need to present your scheme description to user base, this just might do the trick.
Build for very specific XSD-parsing needs it has it's uses in general, or can be adapted.
## How to use
Simply do this and you'll get an HTML layout ready to print out:```php
include_once "visualizer.class.php";
$visualizer = new XSDVis\Visualizer('example/schema.xsd');
echo $visualizer->draw();
```Add styles, some interactivity, and you're in business. An example is provided on how this can be achieved.
If you don't like the output of Visualizer itself, you sure can make your own class.
Simply call parser directly and use it's results to your desire; check with Visualizer for reference.
```php
include_once "parser.class.php";
try {
$parser = new XSDVis\Parser($filepath);
} catch (Exception $e) {
echo "Parser - Exception occurred: " . $e->getMessage();
}
$parser->parse();
```