XMLElement

extension XMLElement
  • return an attribute as a list of sub-attributeds split by a given character and ordered with the longest attribute name first

    Declaration

    Swift

    public func sortedSubAttributesFor(attr: String, splitBy char: Character = ",", orderedBy: (String, String) -> Bool = { $0.count > $1.count || ($0.count == $1.count && $0 < $1)}) -> [String]
  • return the documentation for a given node

    Declaration

    Swift

    public func docs() -> String