Skip to content

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

Notifications You must be signed in to change notification settings

esunder/xsdflatten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

xsdflatten

Rudimentary python script to flatten an xsd schema into a single document. Flattened schema is printed to the console.

dependencies

pip install lxml

usage

xsdflatten.py schema_to_flatten.xsd > flattened.xsd

The flattened schema is output to console. Use > to redirect it to a file of your choosing.

troubleshooting

If you have issues after installing lxml on Mac, you might try resetting the PATH:

Apparently, LXML Install on a Mac ends up installing it in the wrong path, so you have to reset the path using:

export PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"

See more details: https://stackoverflow.com/questions/27008222/importerror-no-module-named-lxml-even-though-lxml-is-installed

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages