Skip to content
Olzhas Rakhimov edited this page Nov 9, 2017 · 5 revisions

FAQ

1. How to reduce the output XML size?

scram /path/to/input/files --no-indent | gzip > output_file.xml.gz

The file compression produces up to 50x smaller file. The compressed output can be read by XML processing tools directly (e.g., libxml). You can supply compressed XML input files to scram directly as well.

2. How to debug cryptic XML/XInclude error messages?

The XML error messages are minimal in SCRAM; moreover, XInclude directives are processed before XML and model validation, so file names and line numbers will be misleading in error messages.

Use xmllint tool to get more detailed messages (with XML snippets) and to "dump" the final XML with processed XInclude.

xmllint /path/to/xml/file --xinclude --relaxng /path/to/scram/share/input.rng