xmlschema-xml2json(1)

XML to JSON converter

Section 1 python3-xmlschema bookworm source

Description

XMLSCHEMA-XML2JSON

NAME

xmlschema-xml2json - XML to JSON converter

DESCRIPTION

usage: xmlschema-xml2json [OPTION]... [FILE]... Try ’xmlschema-xml2json --help’ for more information.

decode a set of XML files to JSON.

positional arguments:

[XML_FILE ...]

XML files to be decoded to JSON.

options:

-h, --help

show this help message and exit

-v

increase output verbosity.

--schema PATH

path or URL to an XSD schema.

--version VERSION

XSD schema validator to use (default is 1.0).

-L URI/URL URI/URL

schema location hint overrides.

--converter NAME

use a different XML to JSON convention instead of the default converter. Option value can be one of (’Unordered’, ’Parker’, ’BadgerFish’, ’Abdera’, ’JsonML’, ’Columnar’).

--lazy

use lazy decoding mode (slower but use less memory).

--defuse (always, remote, never)

when to defuse XML data, on remote resources for default.

-o OUTPUT, --output OUTPUT

where to write the encoded XML files, current dir by default.

-f, --force

do not prompt before overwriting.