NamedNodeMap
interface in package org.w3c.dom

    public interface NamedNodeMap:

NamedNodeMap

Name-addressable collection of DOM nodes, typically attributes.

    import org.w3c.dom

    attributes as NamedNodeMap = element.attributes
    print(attributes.length)

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | length `length as Int` | Number of nodes in this map.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | getNamedItem `getNamedItem(name as String) as Node` | Returns a node by its qualified name.
public | getNamedItemNS `getNamedItemNS(namespaceURI as String, localName as String) as Node` | Returns a node by namespace URI and local name.
public | item `item(index as Int) as Node` | Returns the node at the given zero-based index, or null when out of range.
public | removeNamedItem `removeNamedItem(name as String) as Node throws DOMException` | Removes a named node.
public | removeNamedItemNS `removeNamedItemNS(namespaceURI as String, localName as String) as Node throws DOMException` | Removes a namespace-aware named node.
public | setNamedItem `setNamedItem(arg as Node) as Node throws DOMException` | Adds or replaces a named node.
public | setNamedItemNS `setNamedItemNS(arg as Node) as Node throws DOMException` | Adds or replaces a namespace-aware named node.