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

Element

mattt edited this page Apr 7, 2020 · 4 revisions

Element

public final class Element: Node

Inheritance

Node

Initializers

init(name:)

public convenience init(name: String)

init?(rawValue:)

public required init?(rawValue: UnsafeMutableRawPointer)

Properties

document

var document: Document?

name

var name: String

namespace

var namespace: Namespace?

namespaceDefinitions

var namespaceDefinitions: [Namespace]

Methods

append(sibling:)

public func append(sibling node: Node)

prepend(sibling:)

public func prepend(sibling node: Node)

replace(with:)

public func replace(with node: Node)

insert(child:)

public func insert(child node: Node)

wrap(inside:)

public func wrap(inside element: Element)

remove()

public func remove()

search(xpath:)

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

evaluate(xpath:)

public func evaluate(xpath: XPath.Expression) -> 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