Skip to main content

kapi exec xml-validation

kapi xml-validation [files...]

XML Validation

Commandexec xml-validation
Try it

Runs in your browser against a small sample file. Edit the command before running, or press Run to execute it as shown.

kapi exec xml-validation
Flags
FlagTypeDefaultDescription
--check-sourcebooltrueValidate source text for XML well-formedness
--check-targetboolfalseValidate target text for XML well-formedness
--concurrency, -jint0max parallel files (0 = auto)
--encoding, -estringcharset the input is read in; a byte-order mark in the file wins (default: the project's defaults.encoding, then UTF-8)
--enginestringformat engine for detected files: native or a plugin name (default: native, then plugins)
--fail-on-unknownboolfalseexit with error if any file cannot be processed (default: skip with warning)
--format, -fstringoverride input format detection
--jsonboolfalseoutput results as JSON
--localestringTarget locale for validation
--map, -mstringArraymap glob pattern to format (e.g. '*.docx=okf_openxml:test')
--no-warnboolfalsesuppress warnings for skipped files
--packboolfalsewhen transforming a .kpz, also eject the result to the .kpz (auto-pack)
--parallel-blocksint0fan out block processing across N goroutines (0 = off)
--progressboolfalseshow progress bar
--project, -pstringpath to a kapi.yaml project recipe or its directory (auto-discovered from cwd if omitted)
--source-langstringsource language (e.g. en, en-US; defaults to the project's source_language, else en)
--strictboolfalsealias for --fail-on-unknown
--target-langstringtarget language (e.g. fr, de-DE); one per run
--tracestringwrite flow trace JSON to file (for flow visualization)
--wrap-rootbooltrueWrap text in a root element before validating

← Back to the Command Reference