Software /
code /
prosody
Comparison
doc/stanza.txt @ 55:4edb942e9dff
Some notes of the stanza and session structures
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 04 Oct 2008 19:32:02 +0500 |
comparison
equal
deleted
inserted
replaced
51:5253c891a360 | 55:4edb942e9dff |
---|---|
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 } |