Module process_includes
[hide private]
[frames] | no frames]

Module process_includes

source code

  1. Synopsis:

    Recusively process the include elements in an XML Schema file. Produce a single file that contains all included content. Input is read either from a file or from stdin. Output is written either to a file or to stdout.

  2. Usage:

    python process_includes.py [options] [ infile [ outfile ] ]

  3. Options: -h, --help Display this help message. -f, --force Force. If outfile exists, overwrite without asking.
  4. Examples:

    python process_includes.py infile.xsd python process_includes.py infile.xsd outfile.xsd python process_includes.py infile.xsd > outfile.xsd cat infile.py | python process_includes.py > outfile.xsd

Functions [hide private]
 
process_include(inpath, outpath) source code
 
process_include_tree(root) source code
 
make_file(outFileName) source code
 
usage() source code
 
main() source code
Variables [hide private]
  WhichElementTree = 'xml.etree'
  FORCE = False
  NAMESPACE_PAT = re.compile(r'\{.*\}')
  USAGE_TEXT = '\n1. Synopsis:\n\nRecusively process the include...
  __package__ = None
hash(x)
Variables Details [hide private]

USAGE_TEXT

Value:
'''
1. Synopsis:

Recusively process the include elements in an XML Schema file.
Produce a single file that contains all included content.
Input is read either from a file or from stdin.
Output is written either to a file or to stdout.

...