Skip to content

Documentation / @sw-file-lib/xml / xml-schema / UnknownFieldMode

Type Alias: UnknownFieldMode ​

ts
type UnknownFieldMode = "error" | "ignore";

Defined in: packages/xml/src/xml-schema/parseOptions.ts:38

Determines how an unknown attribute or child element is handled.

  • "error": Stop parsing and report an error.
  • "ignore": Ignore the unknown field and continue parsing.