Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.

Parser_Options

mattt edited this page Apr 7, 2020 · 3 revisions

Parser.Options

public struct Options: OptionSet

Inheritance

OptionSet, OptionSet

Initializers

init(rawValue:)

public init(rawValue: Int32)

init(rawValue:)

public init(rawValue: Int32)

Properties

rawValue

var rawValue: Int32

relaxed

Relaxed parsing

let relaxed

noDefaultDTD

Do not default a doctype if not found

let noDefaultDTD

suppressErrors

Suppress errors

let suppressErrors

suppressWarnings

Suppress warnings

let suppressWarnings

pedantic

Pedantic error reporting

let pedantic

removeBlankNodes

Remove blank nodes

let removeBlankNodes

forbidNetworkAccess

Forbid network access

let forbidNetworkAccess

omitImpliedTags

Do not add implied html/body... elements

let omitImpliedTags

compact

Compact small text nodes

let compact

ignoreDocumentEncodingHint

Ignore internal document encoding hint

let ignoreDocumentEncodingHint

rawValue

var rawValue: Int32

relaxed

Relaxed parser

let relaxed

substituteEntities

Substitute entities.

let substituteEntities

loadDTDExternalSubset

Load external subset

let loadDTDExternalSubset

useDefaultDTDAttributes

Use default DTD attributes

let useDefaultDTDAttributes

validateDTD

Validate with the DTD

let validateDTD

suppressErrors

Suppress errors

let suppressErrors

suppressWarnings

Suppress warnings

let suppressWarnings

pedantic

Pedantic error reporting

let pedantic

removeBlankNodes

Remove blank nodes

let removeBlankNodes

useSAX1Interface

Use the SAX1 interface

let useSAX1Interface

implementXIncludeSubstitution

Implement XInclude substituion

let implementXIncludeSubstitution

forbidNetworkAccess

Forbid network access

let forbidNetworkAccess

noContextDictionaryReuse

Do not reuse the context dictionary

let noContextDictionaryReuse

removeRedundantNamespaceDeclarations

Remove redundant namespaces declarations

let removeRedundantNamespaceDeclarations

mergeCDATA

Merge CDATA as text nodes

let mergeCDATA

noXIncludeDelimiterNodes

Do not generate XINCLUDE START/END nodes

let noXIncludeDelimiterNodes

compact

Compact small text nodes.

let compact

Warning: Modification of the resulting tree isn't allowed

noXIncludeBaseURIFixup

Do not fixup XINCLUDE xml:base uris

let noXIncludeBaseURIFixup

relaxHardcodedLimits

Relax any hardcoded limit from the parser

let relaxHardcodedLimits

ignoreEncodingHint

Ignore internal document encoding hint

let ignoreEncodingHint

bigLineNumbers

Store big lines numbers in text PSVI field

let bigLineNumbers
Types
Protocols
Global Functions
Extensions

Clone this wiki locally