Function getElementsByTagName

  • Parses an XML string and retrieves all elements with the specified tag name.

    Parameters

    • xml: string

      The XML string to parse

    • tag: string

      The tag name to search for within the XML

    Returns LiveNodeList<Node>

    A live NodeList collection of matched elements