Skip to content

xml

XML Input filter for ingest_json.

Processes XML files with xmltodict. Attributes are prefixed with _ instead of @ by default.

Configuration values:

  • process-namespaces (default: False): Whether to process and expand namespaces (see xmltodict documentation)
  • namespaces (default: None): Namespace to prefix mappings dict in url: prefix format.
  • attr-prefix (default: _): Prefix that will be used for attributes (in order to avoid potential clashes with element names).
  • namespace-separator (default :): String that will be used to separate the namespace prefix and the local name when processing namespaces.
  • text-property (default: _): property name that will be used to put the element's text content into
  • disable-entities (default: True): disable processing of XML entities (to avoid XXE injections when parsing untrusted data)