attribute(withName:stringValue:)
create XML attribute node
static func attribute(withName: String, stringValue: String) -> XML.Node create XML attribute node
static func attribute(withName: String, stringValue: String) -> XML.Node s7SotoXML0B0O4NodeC9attribute8withName11stringValueAESS_SStFZ What are these?8E9GKimport SotoXMLclass Nodebase class for all types of XML.Node
enum XMLImplemented to replace the XML Foundation classes. This was initially required as there is no implementation of the Foundation XMLNode classes in iOS. This is also here because the implementation of XMLNode in Linux Swift 4.2 was causing crashes. Whenever an XMLDocument was deleted all the underlying CoreFoundation objects were deleted. This meant if you still had a reference to a XMLElement from that document, while it was still valid the underlying CoreFoundation object had been deleted.
@frozen struct StringA Unicode string value that is a collection of characters.
static func comment(stringValue: String) -> XML.Node create XML comment node
static func document() -> XML.Node create XML document node
static func element(withName: String, stringValue: String? = nil) -> XML.Node create XML element node
static func namespace(withName: String? = nil, stringValue: String) -> XML.Node create XML namespace node
static func text(stringValue: String) -> XML.Node create raw text node
var childCount: Int { get }return number of children
var children: [XML.Node]? { get }var debugDescription: String { get }CustomDebugStringConvertible protocol
var description: String { get }CustomStringConvertible protocol
let kind: XML.Node.Kinddefines the type of xml node
var name: String?weak var parent: XML.Node?var stringValue: String?var xmlString: String { get }output formatted XML
func children(of kind: XML.Node.Kind) -> [XML.Node]? return children of a specific kind
func detach() detach XML node from its parent
enum KindXML node type