Skip to content

FZU-AV-CR/xsdflatten

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xsdflatten

Python 3 script to flatten an XSD schema into a single document by merging all included schemas. The flattened schema is printed to the console.

Installation

Install directly from source:

pip3 install .

Or for development:

pip3 install -e .

After installation, you can use the xsdflatten command directly.

Dependencies

If installing manually, install dependencies using:

pip3 install -r requirements.txt

Usage

After installation via pip:

xsdflatten input_schema.xsd
xsdflatten --output flattened.xsd input_schema.xsd

Or run directly without installation:

python3 xsdflatten.py input_schema.xsd
python3 xsdflatten.py --output flattened.xsd input_schema.xsd

Options

  • input_file - Input XSD file to flatten (required)
  • -o, --output FILE - Output file (if not specified, prints to stdout)
  • -h, --help - Show help message

The script processes the main XSD file and all its includes (recursively), then outputs a single flattened XSD schema. Use -o parameter to save to a file or redirect stdout with >.

Attribution

This project is based on the original tool esunder/xsdflatten and is further developed and extended.

About

Rudimentary python script to flatten an xsd schema into a single document

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages

  • Python 100.0%