SimpleXML.add

Adds a new element to the root element of the document.

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

Parameters

name T[]

the name of the element

value T[]

the value of the element

Return Value

Type: Node

a reference to the element

Meta