Functions

The following functions are available globally.

  • Determine whether two documents are the same

    Declaration

    Swift

    public func ==(lhs: XMLDocument, rhs: XMLDocument) -> Bool

    Parameters

    lhs

    XMLDocument on the left

    rhs

    XMLDocument on the right

    Return Value

    whether lhs and rhs are equal

  • For supporting pattern matching of those enum case alias getters for XMLNodeType

    Declaration

    Swift

    public func ~=(lhs: XMLNodeType, rhs: XMLNodeType) -> Bool

    Parameters

    lhs

    left hand side

    rhs

    right hand side

    Return Value

    true if both sides equals

  • Determine whether two nodes are the same

    Declaration

    Swift

    public func ==(lhs: XMLNode, rhs: XMLNode) -> Bool

    Parameters

    lhs

    XMLNode on the left

    rhs

    XMLNode on the right

    Return Value

    whether lhs and rhs are equal