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

Document

mattt edited this page Apr 7, 2020 · 3 revisions

Document

public final class Document: DOM.Document

Inheritance

Node, DOM.Document, DOM.Document

Initializers

init?()

public convenience init?()

init?(rawValue:)

public required init?(rawValue: UnsafeMutableRawPointer)

init?(string:baseURL:encoding:options:)

public convenience init?(string: String, baseURL url: URL? = nil, encoding: String.Encoding = .utf8, options: Parser.Options = [.suppressWarnings, .suppressErrors, .relaxed]) throws

init?(version:)

public convenience init?(version: String? = nil)

init?(rawValue:)

public required init?(rawValue: UnsafeMutableRawPointer)

init?(string:baseURL:encoding:options:)

public convenience init?(string: String, baseURL url: URL? = nil, encoding: String.Encoding = .utf8, options: Parser.Options = [.suppressWarnings, .suppressErrors, .relaxed]) throws

Properties

type

var type: DocumentType?

version

var version: String?

encoding

var encoding: String.Encoding

root

var root: Element?

head

var head: Element?

body

var body: Element?

title

var title: String?

description

var description: String

properties

var properties: Properties

namespaceDefinitions

var namespaceDefinitions: [Namespace]

description

var description: String

Methods

search(xpath:)

public func search(xpath: String) -> [Element]

evaluate(xpath:)

public func evaluate(xpath: String) -> XPath.Object?

search(xpath:)

public func search(xpath: XPath.Expression) -> [Element]

evaluate(xpath:)

public func evaluate(xpath: XPath.Expression) -> XPath.Object?
Types
Protocols
Global Functions
Extensions
Clone this wiki locally