|
1 |
|
2 Structure of a stanza: |
|
3 |
|
4 |
|
5 stanza { |
|
6 --- properties --- |
|
7 tags -- array of tags |
|
8 |
|
9 --- static methods --- |
|
10 iq(attrs) -- |
|
11 |
|
12 --- read-only methods --- |
|
13 reply -- return new stanza with attributes of current stanza |
|
14 child_with_name(string name) -- return the first child of the current tag with the matching name |
|
15 |
|
16 --- write methods --- |
|
17 tag(name, sttrs) -- create a new child of the current tag, and set the child as current |
|
18 up() -- move to the parent of the current tag |
|
19 text(string) -- append a new text node to the current tag |
|
20 } |