Node
public class Node
extension XML.Node : CustomStringConvertible, CustomDebugStringConvertible
base class for all types of XML.Node
-
XML node type
See moreDeclaration
Swift
public enum Kind
-
defines the type of xml node
Declaration
Swift
public let kind: Kind
-
Undocumented
Declaration
Swift
public var name: String?
-
Undocumented
Declaration
Swift
public var stringValue: String?
-
Undocumented
Declaration
Swift
public fileprivate(set) var children: [XML.Node]? { get }
-
Undocumented
Declaration
Swift
public weak var parent: XML.Node?
-
create XML document node
Declaration
Swift
public static func document() -> XML.Node
-
create XML element node
Declaration
Swift
public static func element(withName: String, stringValue: String? = nil) -> XML.Node
-
create raw text node
Declaration
Swift
public static func text(stringValue: String) -> XML.Node
-
create XML attribute node
Declaration
Swift
public static func attribute(withName: String, stringValue: String) -> XML.Node
-
create XML namespace node
Declaration
Swift
public static func namespace(withName: String? = nil, stringValue: String) -> XML.Node
-
create XML comment node
Declaration
Swift
public static func comment(stringValue: String) -> XML.Node
-
return number of children
Declaration
Swift
public var childCount: Int { get }
-
detach XML node from its parent
Declaration
Swift
public func detach()
-
output formatted XML
Declaration
Swift
public var xmlString: String { get }
-
CustomStringConvertible protocol
Declaration
Swift
public var description: String { get }
-
CustomDebugStringConvertible protocol
Declaration
Swift
public var debugDescription: String { get }