Element.addSibling

Another convenience function. Adds a child directly after the current one, returning the new child.

Between this, addChild, and parentNode, you can build a tree as a single expression.

  1. Element addSibling(string tagName, string childInfo, string childInfo2)
    class Element
    addSibling
    (
    string tagName
    ,
    string childInfo = null
    ,
    string childInfo2 = null
    )
    out (e) { assert (e.parentNode is this.parentNode); assert (e.parentDocument is this.parentDocument); }
  2. Element addSibling(Element e)

See Also

Suggestion Box / Bug Report