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 May 5, 2021 · 3 revisions

Document

open class Document: Node 

Inheritance

Node, DOM.Document, DOM.Document

Initializers

init?()

public convenience init?() 

init?(rawValue:)

public required init?(rawValue: UnsafeMutableRawPointer) 

init?(builder:)

public convenience init?(@DOMBuilder builder: () -> Node) 

init?(builder:)

public convenience init?(@DOMBuilder builder: () -> Node) 

init?(builder:)

public convenience init?(@DOMBuilder builder: () -> Node) 

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?(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?(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?(builder:)

public convenience init?(@DOMBuilder builder: () -> Node) 

init?(builder:)

public convenience init?(@DOMBuilder builder: () -> Node) 

init?(builder:)

public convenience init?(@DOMBuilder builder: () -> Node) 

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?(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?(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

public var type: DocumentType? 

version

public var version: String? 

encoding

public var encoding: String.Encoding 

root

public var root: Element? 

head

public var head: Element? 

body

public var body: Element? 

title

public var title: String? 

description

public override var description: String 

properties

public var properties: Properties 

description

public override var description: String 

Methods

insert(child:)

public func insert(child node: Node) 

clone(behavior:)

public func clone(behavior: CloningBehavior = .recursive) throws -> Self 

search(xpath:)

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

search(xpath:)

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

search(xpath:)

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

evaluate(xpath:)

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

evaluate(xpath:)

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

evaluate(xpath:)

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

search(xpath:)

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

search(xpath:)

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

search(xpath:)

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

evaluate(xpath:)

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

evaluate(xpath:)

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

evaluate(xpath:)

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