View source code
Display the source code in std/xml.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

std.xml.Element.opCatAssign - multiple declarations

Function Element.opCatAssign

Append a text item to the interior of this element

void opCatAssign (
  Text item
) pure @safe;

Parameters

NameDescription
item the item you wish to append.

Example

Element element;
element ~= new Text("hello");

Function Element.opCatAssign

Append a CData item to the interior of this element

void opCatAssign (
  CData item
) pure @safe;

Parameters

NameDescription
item the item you wish to append.

Example

Element element;
element ~= new CData("hello");

Function Element.opCatAssign

Append a comment to the interior of this element

void opCatAssign (
  Comment item
) pure @safe;

Parameters

NameDescription
item the item you wish to append.

Example

Element element;
element ~= new Comment("hello");

Function Element.opCatAssign

Append a processing instruction to the interior of this element

void opCatAssign (
  ProcessingInstruction item
) pure @safe;

Parameters

NameDescription
item the item you wish to append.

Example

Element element;
element ~= new ProcessingInstruction("hello");

Function Element.opCatAssign

Append a complete element to the interior of this element

void opCatAssign (
  Element item
) pure @safe;

Parameters

NameDescription
item the item you wish to append.

Example

Element element;
Element other = new Element("br");
element ~= other;
   // appends element representing <br />

Authors

Janice Caron

License

Boost License 1.0.