addX

Add a new node as a child.

This overload is considered legacy; you should use the apprend ~= operator instead.

  1. Element addX(Element parent, Args args)
    template addX(Ts...)
    Element
    addX
    (
    Args...
    )
    (
    ref Element parent
    ,
    Args args
    )
    if (
    Ts.length != 0
    )
  2. Element addX(Element parent, Args args)
  3. Element addX(Element parent, Ts args)
  4. Element addX(Element parent, Ts args)

Members

Functions

addX
Element addX(Element parent, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
addX
Element addX(Element parent, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.

Parameters

parent

Parent node.

Return Value

This node, to allow chaining.

Examples

auto document = elem!"xml"
    .addX!"text"("Hello")
    .addX!"text"("World!");

assert(document == "<xml><text>Hello</text><text>World!</text></xml>");

Meta