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