XMLNode
public class XMLNode
Base class for all XML nodes
-
The document containing the element.
Declaration
Swift
public unowned let document: XMLDocument
-
The type of the XMLNode
Declaration
Swift
public var type: XMLNodeType
-
The element’s line number.
Declaration
Swift
public private(set) lazy var lineNumber: Int =
-
The element’s parent element.
Declaration
Swift
public private(set) lazy var parent: XMLElement? =
-
The element’s next sibling.
Declaration
Swift
public private(set) lazy var previousSibling: XMLElement? =
-
The element’s previous sibling.
Declaration
Swift
public private(set) lazy var nextSibling: XMLElement? =
-
A string representation of the element’s value.
Declaration
Swift
public private(set) lazy var stringValue : String =
-
The raw XML string of the element.
Declaration
Swift
public private(set) lazy var rawXML: String =
-
Convert this node to XMLElement if it is an element node
Declaration
Swift
public func toElement() -> XMLElement?