Element.addSibling

Element addSibling(string tagName, string childInfo = null, string childInfo2 = null)

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.

See Also

[addChild]
Element addSibling(Element e)

ditto