A Child object is something contained by a parent, and this class contains
methods to support that. Most user code will not use this class directly.
| Public Methods |
| bytes |
This doesn’t yet handle encodings
|
| document |
belongs to no document
|
| new |
Constructor. Any inheritors of this class should call super to make sure
this method is called.
|
| next_sibling= |
Sets the next sibling of this child. This can be used to insert a child
after some other child.
|
| parent= |
Sets the parent of this child to the supplied argument.
|
| previous_sibling= |
Sets the previous sibling of this child. This can be used to insert a child
before some other child.
|
| remove |
Removes this child from the parent.
|
| replace_with |
Replaces this object with another object. Basically, calls
Parent.replace_child
|
<code/>and<pre/>for code samples.