-
Notifications
You must be signed in to change notification settings - Fork 55
Olzhas Rakhimov edited this page Nov 9, 2017
·
5 revisions
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.
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