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

Parser_Options

mattt edited this page May 5, 2021 · 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

public var rawValue: Int32

relaxed

Relaxed parsing

public static let relaxed 

noDefaultDTD

Do not default a doctype if not found

public static let noDefaultDTD 

suppressErrors

Suppress errors

public static let suppressErrors 

suppressWarnings

Suppress warnings

public static let suppressWarnings 

pedantic

Pedantic error reporting

public static let pedantic 

removeBlankNodes

Remove blank nodes

public static let removeBlankNodes 

forbidNetworkAccess

Forbid network access

public static let forbidNetworkAccess 

omitImpliedTags

Do not add implied html/body... elements

public static let omitImpliedTags 

compact

Compact small text nodes

public static let compact 

ignoreDocumentEncodingHint

Ignore internal document encoding hint

public static let ignoreDocumentEncodingHint 

rawValue

public var rawValue: Int32

relaxed

Relaxed parser

public static let relaxed 

substituteEntities

Substitute entities.

public static let substituteEntities 

loadDTDExternalSubset

Load external subset

public static let loadDTDExternalSubset 

useDefaultDTDAttributes

Use default DTD attributes

public static let useDefaultDTDAttributes 

validateDTD

Validate with the DTD

public static let validateDTD 

suppressErrors

Suppress errors

public static let suppressErrors 

suppressWarnings

Suppress warnings

public static let suppressWarnings 

pedantic

Pedantic error reporting

public static let pedantic 

removeBlankNodes

Remove blank nodes

public static let removeBlankNodes 

useSAX1Interface

Use the SAX1 interface

public static let useSAX1Interface 

implementXIncludeSubstitution

Implement XInclude substituion

public static let implementXIncludeSubstitution 

forbidNetworkAccess

Forbid network access

public static let forbidNetworkAccess 

noContextDictionaryReuse

Do not reuse the context dictionary

public static let noContextDictionaryReuse 

removeRedundantNamespaceDeclarations

Remove redundant namespaces declarations

public static let removeRedundantNamespaceDeclarations 

mergeCDATA

Merge CDATA as text nodes

public static let mergeCDATA 

noXIncludeDelimiterNodes

Do not generate XINCLUDE START/END nodes

public static let noXIncludeDelimiterNodes 

compact

Compact small text nodes.

public static let compact 

noXIncludeBaseURIFixup

Do not fixup XINCLUDE xml:​base uris

public static let noXIncludeBaseURIFixup 

relaxHardcodedLimits

Relax any hardcoded limit from the parser

public static let relaxHardcodedLimits 

ignoreEncodingHint

Ignore internal document encoding hint

public static let ignoreEncodingHint 

bigLineNumbers

Store big lines numbers in text PSVI field

public static let bigLineNumbers 
Types
Protocols
Global Functions
Extensions
Clone this wiki locally