SimpleXML.add

Adds the given attribute to the root element of the document.

  1. Node add(T[] name, T[] value)
  2. Node add(Element element)
  3. Node add(Attribute attribute)
    class SimpleXML(T)

Return Value

Type: Node

a reference to the element

Meta