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
Parameters
Name | Description |
---|---|
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
Parameters
Name | Description |
---|---|
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
Parameters
Name | Description |
---|---|
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
Parameters
Name | Description |
---|---|
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
Parameters
Name | Description |
---|---|
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
Copyright © 1999-2018 by the D Language Foundation | Page generated by ddox.