doc/stanza.txt

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